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
HttpMethod.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 HttpMethod.h
15
* @author Brian Geffon
16
* @author Manjesh Nilange
17
* @brief Contains an enumeration and printable strings for Http Methods.
18
*/
19
#pragma once
20
#ifndef ATSCPPAPI_HTTP_METHOD_H_
21
#define ATSCPPAPI_HTTP_METHOD_H_
22
23
#include <string>
24
25
namespace
atscppapi {
26
27
/**
28
* An enumeration of all available Http Methods.
29
*/
30
enum
HttpMethod {
31
HTTP_METHOD_UNKNOWN = 0,
32
HTTP_METHOD_GET,
33
HTTP_METHOD_POST,
34
HTTP_METHOD_HEAD,
35
HTTP_METHOD_CONNECT,
36
HTTP_METHOD_DELETE,
37
HTTP_METHOD_ICP_QUERY,
38
HTTP_METHOD_OPTIONS,
39
HTTP_METHOD_PURGE,
40
HTTP_METHOD_PUT,
41
HTTP_METHOD_TRACE
42
};
43
44
/**
45
* An array of printable strings representing of the HttpMethod
46
* \code
47
* cout << HTTP_METHOD_STRINGS[HTTP_METHOD_GET] << endl;
48
* \endcode
49
*/
50
extern
const
std::string HTTP_METHOD_STRINGS[];
51
52
}
53
54
#endif
Generated on Mon Oct 14 2013 11:39:29 for atscppapi by
1.8.3.1