• Main Page
  • Classes
  • Files
  • File List

include/S3/S3Constants.h

00001 /*
00002  * Copyright 2010 Amazon.com, Inc. or its affiliates. All Rights Reserved.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License").
00005  * You may not use this file except in compliance with the License.
00006  * A copy of the License is located at
00007  *
00008  *  http://aws.amazon.com/apache2.0
00009  *
00010  * or in the "license" file accompanying this file. This file is distributed
00011  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
00012  * express or implied. See the License for the specific language governing
00013  * permissions and limitations under the License.
00014  */
00015 
00016 // HTTP Method Constants
00017 
00018 #define kHttpMethodPut    @"PUT"
00019 #define kHttpMethodGet    @"GET"
00020 #define kHttpMethodHead   @"HEAD"
00021 #define kHttpMethodPost   @"POST"
00022 #define kHttpMethodDelete @"DELETE"
00023 
00024 // HTTP Header Constants
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 // Amazon-specific HTTP Header Constants
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 // pre-signed URL query string parameters
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 

Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.