MethodType.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_SRC_HTTP_METHODTYPE_H
10 #define SQUID_SRC_HTTP_METHODTYPE_H
11 
12 #include "sbuf/SBuf.h"
13 
14 namespace Http
15 {
16 
17 /*
18  * The IANA registry for HTTP status codes can be found at:
19  * http://www.iana.org/assignments/http-methods/http-methods.xhtml
20  */
21 typedef enum _method_t {
23 
24  // RFC 2616 (HTTP)
33 
34 #if NO_SPECIAL_HANDLING
35  // RFC 2068
36  METHOD_LINK,
37  METHOD_UNLINK,
38 #endif
39 
40  // RFC 3253
52 
53 #if NO_SPECIAL_HANDLING
54  // RFC 3648
55  METHOD_ORDERPATCH,
56 
57  // RFC 3744
58  METHOD_ACL,
59 
60  // RFC 4437
61  METHOD_MKREDIRECTREF,
62  METHOD_UPDATEREDIRECTREF,
63 
64  // RFC 4791
65  METHOD_MKCALENDAR,
66 #endif
67 
68  // RFC 4918 (WebDAV)
76 
77  // RFC 5323
79 
80 #if NO_SPECIAL_HANDLING
81  // RFC 5789
82  METHOD_PATCH,
83 
84  // RFC 5842
85  METHOD_BIND,
86  METHOD_REBIND,
87  METHOD_UNBIND,
88 #endif
89 
90  // RFC 7540
92 
93  // Squid extension methods
96  METHOD_ENUM_END // MUST be last, (yuck) this is used as an array-initialization index constant!
97 } MethodType;
98 
99 extern const SBuf MethodType_sb[];
100 
101 inline const SBuf &
103 {
104  return MethodType_sb[m];
105 }
106 
107 }; // namespace Http
108 
109 #endif /* SQUID_SRC_HTTP_METHODTYPE_H */
110 
Definition: SBuf.h:87
enum Http::_method_t MethodType
const SBuf MethodType_sb[]
const SBuf & MethodStr(const MethodType m)
Definition: MethodType.h:102
_method_t
Definition: MethodType.h:21

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors