CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
http_request_header.h
1
2#pragma once
3
4#include <system/array.h>
5#include <system/object.h>
6#include <system/string.h>
7
8namespace System { namespace Net {
9
12{
14 CacheControl = 0,
16 Connection = 1,
18 Date = 2,
20 KeepAlive = 3,
22 Pragma = 4,
24 Trailer = 5,
28 Upgrade = 7,
30 Via = 8,
32 Warning = 9,
34 Allow = 10,
36 ContentLength = 11,
38 ContentType = 12,
40 ContentEncoding = 13,
42 ContentLanguage = 14,
44 ContentLocation = 15,
46 ContentMd5 = 16,
48 ContentRange = 17,
50 Expires = 18,
52 LastModified = 19,
54 Accept = 20,
56 AcceptCharset = 21,
58 AcceptEncoding = 22,
60 AcceptLanguage = 23,
62 Authorization = 24,
64 Cookie = 25,
66 Expect = 26,
68 From = 27,
70 Host = 28,
72 IfMatch = 29,
74 IfModifiedSince = 30,
76 IfNoneMatch = 31,
78 IfRange = 32,
82 MaxForwards = 34,
86 Referer = 36,
88 Range = 37,
90 Te = 38,
92 Translate = 39,
94 UserAgent = 40
95};
96
99{
100public:
104 ASPOSECPP_SHARED_API static String GetName(HttpRequestHeader header);
105
108
109private:
111 static System::ArrayPtr<String> s_names;
112
114 static struct __StaticConstructor__
115 {
116 __StaticConstructor__();
117 } s_constructor__;
118};
119
120}} // namespace System::Net
Contains utility methods to work with the HttpRequestHeader enumeration values.
Definition: http_request_header.h:99
static String GetName(HttpRequestHeader header)
Returns the string representation of the specified header.
HttpRequestHeaderExtensions()=delete
The deleted default constructor.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
HttpRequestHeader
Enumerates the request headers.
Definition: http_request_header.h:12
@ Warning
The 'Warning' header.
@ ContentLength
The 'Content-Length' header.
@ KeepAlive
The 'Keep-Alive' header.
@ Date
The 'Date' header.
@ Allow
The 'Allow' header.
@ AcceptEncoding
The 'Accept-Encoding' header.
@ IfRange
The 'If-Range' header.
@ TransferEncoding
The 'Transfer-Encoding' header.
@ From
The 'From' header.
@ Referer
The 'Referer' header.
@ IfNoneMatch
The 'If-None-Match' header.
@ Trailer
The 'Trailer' header.
@ UserAgent
The 'User-Agent' header.
@ IfUnmodifiedSince
The 'If-Unmodified-Since' header.
@ Expect
The 'Expect' header.
@ Range
The 'Range' header.
@ ContentLanguage
The 'Content-Language' header.
@ ContentRange
The 'Content-Range' header.
@ CacheControl
The 'Cache-Control' header.
@ ContentEncoding
The 'Content-Encoding' header.
@ IfModifiedSince
The 'If-Modified-Since' header.
@ Authorization
The 'Authorization' header.
@ AcceptLanguage
The 'Accept-Language' header.
@ ProxyAuthorization
The 'Proxy-Authorization' header.
@ ContentLocation
The 'Content-Location' header.
@ ContentType
The 'Content-Type' header.
@ Host
The 'Host' header.
@ Connection
The 'Connection' header.
@ Accept
The 'Accept' header.
@ IfMatch
The 'If-Match' header.
@ ContentMd5
The 'Content-MD5' header.
@ Expires
The 'Expires' header.
@ MaxForwards
The 'Max-Forwards' header.
@ Translate
The 'Translate' header.
@ LastModified
The 'Last-Modified' header.
@ AcceptCharset
The 'Accept-Charset' header.
@ Pragma
The 'Pragma' header.
@ Upgrade
The 'Upgrade' header.
Definition: db_command.h:9