atscppapi
1.0.9
C++ wrapper for Apache Traffic Server API
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Enumerations
Enumerator
Macros
src
include
atscppapi
HttpVersion.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013 LinkedIn Corp. All rights reserved.
3
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
4
* except in compliance with the License. You may obtain a copy of the license at
5
* http://www.apache.org/licenses/LICENSE-2.0
6
*
7
* Unless required by applicable law or agreed to in writing, software distributed under the
8
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
9
* either express or implied.
10
*
11
*/
12
13
/**
14
* @file HttpVersion.h
15
* @author Brian Geffon
16
* @author Manjesh Nilange
17
* @brief Contains an enumeration and printable strings for Http Versions.
18
*/
19
20
#pragma once
21
#ifndef ATSCPPAPI_HTTP_VERSION_H_
22
#define ATSCPPAPI_HTTP_VERSION_H_
23
24
#include <string>
25
26
namespace
atscppapi {
27
28
/**
29
* An enumeration of all available Http Versions.
30
*/
31
enum
HttpVersion {
32
HTTP_VERSION_UNKNOWN = 0,
33
HTTP_VERSION_0_9,
34
HTTP_VERSION_1_0,
35
HTTP_VERSION_1_1,
36
};
37
38
/**
39
* An array of printable strings representing of the HttpVersion
40
* \code
41
* cout << HTTP_VERSION_STRINGS[HTTP_VERSION_1_1] << endl;
42
* \endcode
43
*/
44
extern
const
std::string HTTP_VERSION_STRINGS[];
45
46
}
47
48
#endif
Generated on Mon Oct 14 2013 11:39:29 for atscppapi by
1.8.3.1