]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/http/MethodType.h
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_SRC_HTTP_METHODTYPE_H
10 #define SQUID_SRC_HTTP_METHODTYPE_H
12 #include "sbuf/SBuf.h"
18 * The IANA registry for HTTP status codes can be found at:
19 * http://www.iana.org/assignments/http-methods/http-methods.xhtml
21 typedef enum _method_t
{
43 METHOD_VERSION_CONTROL
,
48 METHOD_BASELINE_CONTROL
,
51 #if NO_SPECIAL_HANDLING
60 METHOD_UPDATEREDIRECTREF
,
78 #if NO_SPECIAL_HANDLING
91 // Squid extension methods
94 METHOD_ENUM_END
// MUST be last, (yuck) this is used as an array-initialization index constant!
97 extern const SBuf MethodType_sb
[];
100 MethodStr(const MethodType m
)
102 return MethodType_sb
[m
];
107 #endif /* SQUID_SRC_HTTP_METHODTYPE_H */