00001 /** 00002 Licensed to the Apache Software Foundation (ASF) under one 00003 or more contributor license agreements. See the NOTICE file 00004 distributed with this work for additional information 00005 regarding copyright ownership. The ASF licenses this file 00006 to you under the Apache License, Version 2.0 (the 00007 "License"); you may not use this file except in compliance 00008 with the License. You may obtain a copy of the License at 00009 00010 http://www.apache.org/licenses/LICENSE-2.0 00011 00012 Unless required by applicable law or agreed to in writing, software 00013 distributed under the License is distributed on an "AS IS" BASIS, 00014 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 See the License for the specific language governing permissions and 00016 limitations under the License. 00017 */ 00018 00019 /** 00020 * @file HttpVersion.h 00021 * @brief Contains an enumeration and printable strings for Http Versions. 00022 */ 00023 00024 #pragma once 00025 #ifndef ATSCPPAPI_HTTP_VERSION_H_ 00026 #define ATSCPPAPI_HTTP_VERSION_H_ 00027 00028 #include <string> 00029 00030 namespace atscppapi { 00031 00032 /** 00033 * An enumeration of all available Http Versions. 00034 */ 00035 enum HttpVersion { 00036 HTTP_VERSION_UNKNOWN = 0, 00037 HTTP_VERSION_0_9, 00038 HTTP_VERSION_1_0, 00039 HTTP_VERSION_1_1, 00040 }; 00041 00042 /** 00043 * An array of printable strings representing of the HttpVersion 00044 * \code 00045 * cout << HTTP_VERSION_STRINGS[HTTP_VERSION_1_1] << endl; 00046 * \endcode 00047 */ 00048 extern const std::string HTTP_VERSION_STRINGS[]; 00049 00050 } 00051 00052 #endif