00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #define kHttpMethodPut @"PUT"
00019 #define kHttpMethodGet @"GET"
00020 #define kHttpMethodHead @"HEAD"
00021 #define kHttpMethodPost @"POST"
00022 #define kHttpMethodDelete @"DELETE"
00023
00024
00025
00026 #define kHttpHdrAuthorization @"Authorization"
00027 #define kHttpHdrContentLength @"Content-Length"
00028 #define kHttpHdrContentType @"Content-Type"
00029 #define kHttpHdrDate @"Date"
00030 #define kHttpHdrHost @"Host"
00031 #define kHttpHdrExpect @"Expect"
00032 #define kHttpHdrExpires @"Expires"
00033 #define kHttpHdrRange @"Range"
00034 #define kHttpHdrContentMD5 @"Content-MD5"
00035 #define kHttpHdrContentEncoding @"Content-Encoding"
00036 #define kHttpHdrContentDisposition @"Content-Disposition"
00037 #define kHttpHdrCacheControl @"Cache-Control"
00038 #define kHttpHdrUserAgent @"User-Agent"
00039 #define kHttpHdrIfModified @"If-Modified-Since"
00040 #define kHttpHdrIfUnmodified @"If-Unmodified-Since"
00041 #define kHttpHdrIfMatch @"If-Match"
00042 #define kHttpHdrIfNoneMatch @"If-None-Match"
00043
00044
00045
00046 #define kHttpHdrAmzSecurityToken @"x-amz-security-token"
00047 #define kHttpHdrAmzAcl @"x-amz-acl"
00048 #define kHttpHdrAmzMfa @"x-amz-mfa"
00049 #define kHttpHdrAmzStorageClass @"x-amz-storage-class"
00050 #define kHttpHdrAmzCopySource @"x-amz-copy-source"
00051 #define kHttpHdrAmzMetaFormat @"x-amz-meta-%@"
00052 #define kHttpHdrAmzMetaDirective @"x-amz-metadata-directive"
00053 #define kHttpHdrAmzCopySourceIfMatch @"x-amz-copy-source-if-match"
00054 #define kHttpHdrAmzCopySourceIfNoneMatch @"x-amz-copy-source-if-none-match"
00055 #define kHttpHdrAmzCopySourceIfModified @"x-amz-copy-source-if-modified-since"
00056 #define kHttpHdrAmzCopySourceIfUnmodified @"x-amz-copy-source-if-unmodified-since"
00057
00058 #define kS3DateFormat @"EEE, dd MMM yyyy HH:mm:ss z"
00059
00060 #define kS3SubResourceAcl @"acl"
00061 #define kS3SubResourceVersioning @"versioning"
00062 #define kS3SubResourceTorrent @"torrent"
00063 #define kS3SubResourceLogging @"logging"
00064 #define kS3SubResourcePolicy @"policy"
00065
00066
00067
00068 #define kS3QueryParamAccessKey @"AWSAccessKeyId"
00069 #define kS3QueryParamExpires @"Expires"
00070 #define kS3QueryParamSignature @"Signature"
00071 #define kS3QueryParamMaxKeys @"max-keys"
00072 #define kS3QueryParamPrefix @"prefix"
00073 #define kS3QueryParamMarker @"marker"
00074 #define kS3QueryParamDelimiter @"delimiter"
00075
00076 #define kS3ServiceEndpoint @"http://s3.amazonaws.com"
00077
00078
00079