Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
boto
/
s3
/
File Content:
cors.pyc
� �Wc @ s0 d e f d � � YZ d e f d � � YZ d S( t CORSRulec B sM e Z d Z d d d d d d d � Z d � Z d � Z d � Z d � Z RS( s� CORS rule for a bucket. :ivar id: A unique identifier for the rule. The ID value can be up to 255 characters long. The IDs help you find a rule in the configuration. :ivar allowed_methods: An HTTP method that you want to allow the origin to execute. Each CORSRule must identify at least one origin and one method. Valid values are: GET|PUT|HEAD|POST|DELETE :ivar allowed_origin: An origin that you want to allow cross-domain requests from. This can contain at most one * wild character. Each CORSRule must identify at least one origin and one method. The origin value can include at most one '*' wild character. For example, "http://*.example.com". You can also specify only * as the origin value allowing all origins cross-domain access. :ivar allowed_header: Specifies which headers are allowed in a pre-flight OPTIONS request via the Access-Control-Request-Headers header. Each header name specified in the Access-Control-Request-Headers header must have a corresponding entry in the rule. Amazon S3 will send only the allowed headers in a response that were requested. This can contain at most one * wild character. :ivar max_age_seconds: The time in seconds that your browser is to cache the preflight response for the specified resource. :ivar expose_header: One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object). You add one ExposeHeader element in the rule for each header. c C s� | d k r g } n | | _ | d k r3 g } n | | _ | | _ | d k rZ g } n | | _ | | _ | d k r� g } n | | _ d S( N( t Nonet allowed_methodt allowed_origint idt allowed_headert max_age_secondst expose_header( t selfR R R R R R ( ( s0 /usr/lib/python2.7/site-packages/boto/s3/cors.pyt __init__>