CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
http_request_headers.h
1
2
#pragma once
3
4
#include <system/uri.h>
5
6
#include <net/http/headers/authentication_header_value.h>
7
#include <net/http/headers/entity_tag_header_value.h>
8
#include <net/http/headers/http_headers.h>
9
#include <net/http/headers/media_type_with_quality_header_value.h>
10
#include <net/http/headers/name_value_with_parameters_header_value.h>
11
#include <net/http/headers/product_info_header_value.h>
12
#include <net/http/headers/range_condition_header_value.h>
13
#include <net/http/headers/range_header_value.h>
14
#include <net/http/headers/string_with_quality_header_value.h>
15
#include <net/http/headers/transfer_coding_with_quality_header_value.h>
16
#include <net/http/headers/http_header_value_collection.h>
17
#include <net/http/headers/cache_control_header_value.h>
18
#include <net/http/headers/via_header_value.h>
19
#include <net/http/headers/warning_header_value.h>
20
21
namespace
System
{
namespace
Net {
namespace
Http {
namespace
Headers {
22
23
class
HttpGeneralHeaders;
24
29
class
ASPOSECPP_SHARED_CLASS
HttpRequestHeaders
final :
public
System::Net::Http::Headers::HttpHeaders
30
{
32
typedef
HttpRequestHeaders
ThisType
;
34
typedef
System::Net::Http::Headers::HttpHeaders
BaseType
;
35
37
typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
39
ASPOSECPP_SHARED_RTTI_INFO_DECL();
40
41
public
:
44
ASPOSECPP_SHARED_API
45
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<MediaTypeWithQualityHeaderValue>
>>
get_Accept
();
48
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<StringWithQualityHeaderValue>
>>
49
get_AcceptCharset
();
52
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<StringWithQualityHeaderValue>
>>
53
get_AcceptEncoding
();
56
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<StringWithQualityHeaderValue>
>>
57
get_AcceptLanguage
();
60
ASPOSECPP_SHARED_API
System::SharedPtr<AuthenticationHeaderValue>
get_Authorization
();
63
ASPOSECPP_SHARED_API
void
set_Authorization
(
System::SharedPtr<AuthenticationHeaderValue>
value);
66
ASPOSECPP_SHARED_API
67
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<NameValueWithParametersHeaderValue>
>>
get_Expect
();
70
ASPOSECPP_SHARED_API
Nullable<bool>
get_ExpectContinue
();
73
ASPOSECPP_SHARED_API
void
set_ExpectContinue
(
Nullable<bool>
value);
76
ASPOSECPP_SHARED_API
String
get_From
();
79
ASPOSECPP_SHARED_API
void
set_From
(
String
value);
82
ASPOSECPP_SHARED_API
String
get_Host
();
85
ASPOSECPP_SHARED_API
void
set_Host
(
String
value);
88
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<EntityTagHeaderValue>
>>
89
get_IfMatch
();
92
ASPOSECPP_SHARED_API
Nullable<DateTimeOffset>
get_IfModifiedSince
();
95
ASPOSECPP_SHARED_API
void
set_IfModifiedSince
(
Nullable<DateTimeOffset>
value);
98
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<EntityTagHeaderValue>
>>
99
get_IfNoneMatch
();
102
ASPOSECPP_SHARED_API
System::SharedPtr<RangeConditionHeaderValue>
get_IfRange
();
105
ASPOSECPP_SHARED_API
void
set_IfRange
(
System::SharedPtr<RangeConditionHeaderValue>
value);
108
ASPOSECPP_SHARED_API
Nullable<DateTimeOffset>
get_IfUnmodifiedSince
();
111
ASPOSECPP_SHARED_API
void
set_IfUnmodifiedSince
(
Nullable<DateTimeOffset>
value);
114
ASPOSECPP_SHARED_API
Nullable<int32_t>
get_MaxForwards
();
117
ASPOSECPP_SHARED_API
void
set_MaxForwards
(
Nullable<int32_t>
value);
120
ASPOSECPP_SHARED_API
System::SharedPtr<AuthenticationHeaderValue>
get_ProxyAuthorization
();
123
ASPOSECPP_SHARED_API
void
set_ProxyAuthorization
(
System::SharedPtr<AuthenticationHeaderValue>
value);
126
ASPOSECPP_SHARED_API
System::SharedPtr<RangeHeaderValue>
get_Range
();
129
ASPOSECPP_SHARED_API
void
set_Range
(
System::SharedPtr<RangeHeaderValue>
value);
132
ASPOSECPP_SHARED_API
System::SharedPtr<Uri>
get_Referrer
();
135
ASPOSECPP_SHARED_API
void
set_Referrer
(
System::SharedPtr<Uri>
value);
138
ASPOSECPP_SHARED_API
139
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<TransferCodingWithQualityHeaderValue>
>>
get_TE
();
142
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<ProductInfoHeaderValue>
>>
143
get_UserAgent
();
146
ASPOSECPP_SHARED_API
System::SharedPtr<CacheControlHeaderValue>
get_CacheControl
();
149
ASPOSECPP_SHARED_API
void
set_CacheControl
(
System::SharedPtr<CacheControlHeaderValue>
value);
152
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<String>
>
get_Connection
();
155
ASPOSECPP_SHARED_API
Nullable<bool>
get_ConnectionClose
();
158
ASPOSECPP_SHARED_API
void
set_ConnectionClose
(
Nullable<bool>
value);
161
ASPOSECPP_SHARED_API
Nullable<DateTimeOffset>
get_Date
();
164
ASPOSECPP_SHARED_API
void
set_Date
(
Nullable<DateTimeOffset>
value);
167
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<NameValueHeaderValue>
>>
168
get_Pragma
();
171
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<String>
>
get_Trailer
();
174
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<TransferCodingHeaderValue>
>>
175
get_TransferEncoding
();
178
ASPOSECPP_SHARED_API
Nullable<bool>
get_TransferEncodingChunked
();
181
ASPOSECPP_SHARED_API
void
set_TransferEncodingChunked
(
Nullable<bool>
value);
184
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<ProductHeaderValue>
>>
185
get_Upgrade
();
188
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<ViaHeaderValue>
>>
get_Via
();
191
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<WarningHeaderValue>
>>
192
get_Warning
();
193
195
ASPOSECPP_SHARED_API
HttpRequestHeaders
();
196
199
ASPOSECPP_SHARED_API
static
void
200
AddKnownHeaders
(
System::SharedPtr
<
Collections::Generic::HashSet<String>
> headerSet);
202
ASPOSECPP_SHARED_API
void
AddHeaders
(
System::SharedPtr<HttpHeaders>
sourceHeaders)
override
;
203
204
protected
:
205
#ifdef ASPOSE_GET_SHARED_MEMBERS
207
void
GetSharedMembers(System::Object::shared_members_type& result)
const override
;
208
#endif
209
private
:
211
static
System::SharedPtr<Collections::Generic::Dictionary<String, System::SharedPtr<HttpHeaderParser>
>>
212
s_parserStore;
214
static
System::SharedPtr<Collections::Generic::HashSet<String>
> s_invalidHeaders;
216
System::SharedPtr<HttpGeneralHeaders>
_generalHeaders;
218
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<MediaTypeWithQualityHeaderValue>
>> _accept;
220
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<NameValueWithParametersHeaderValue>
>> _expect;
222
bool
_expectContinueSet;
224
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<EntityTagHeaderValue>
>> _ifMatch;
226
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<EntityTagHeaderValue>
>> _ifNoneMatch;
228
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<TransferCodingWithQualityHeaderValue>
>> _te;
230
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<ProductInfoHeaderValue>
>> _userAgent;
232
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<StringWithQualityHeaderValue>
>> _acceptCharset;
234
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<StringWithQualityHeaderValue>
>> _acceptEncoding;
236
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<StringWithQualityHeaderValue>
>> _acceptLanguage;
237
239
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<NameValueWithParametersHeaderValue>
>>
240
get_ExpectCore();
241
243
static
System::SharedPtr<Collections::Generic::Dictionary<String, System::SharedPtr<HttpHeaderParser>
>>
244
CreateParserStore();
246
static
System::SharedPtr<Collections::Generic::Dictionary<String, System::SharedPtr<HttpHeaderParser>
>>
247
GetParserStore();
249
static
System::SharedPtr<Collections::Generic::HashSet<String>
> CreateInvalidHeaders();
250
252
void
InitStatic();
253
};
254
255
}}}}
// namespace System::Net::Http::Headers
System::Collections::Generic::HashSet
Forward declaration of HashSet class.
Definition:
hashset.h:82
System::Collections::Generic::IEnumerable< System::Collections::Generic::KeyValuePair< System::String, System::SharedPtr< System::Collections::Generic::IEnumerable< System::String > > > >
System::Net::Http::Headers::HttpHeaders
The collection of the HTTP headers. Objects of this class should only be allocated using System::Make...
Definition:
http_headers.h:35
System::Net::Http::Headers::HttpRequestHeaders
Represents the collection of the 'Request' headers. Objects of this class should only be allocated us...
Definition:
http_request_headers.h:30
System::Net::Http::Headers::HttpRequestHeaders::set_IfRange
void set_IfRange(System::SharedPtr< RangeConditionHeaderValue > value)
Sets a value of the 'If-Range' header.
System::Net::Http::Headers::HttpRequestHeaders::get_IfNoneMatch
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< EntityTagHeaderValue > > > get_IfNoneMatch()
Returns a value of the 'If-None-Match' header.
System::Net::Http::Headers::HttpRequestHeaders::get_IfMatch
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< EntityTagHeaderValue > > > get_IfMatch()
Returns a value of the 'If-Match' header.
System::Net::Http::Headers::HttpRequestHeaders::get_Warning
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< WarningHeaderValue > > > get_Warning()
Returns a value of the 'Warning' header.
System::Net::Http::Headers::HttpRequestHeaders::get_TE
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< TransferCodingWithQualityHeaderValue > > > get_TE()
Returns a value of the 'TE' header.
System::Net::Http::Headers::HttpRequestHeaders::get_ProxyAuthorization
System::SharedPtr< AuthenticationHeaderValue > get_ProxyAuthorization()
Gets a value of the 'Proxy-Authorization' header.
System::Net::Http::Headers::HttpRequestHeaders::set_CacheControl
void set_CacheControl(System::SharedPtr< CacheControlHeaderValue > value)
Sets a value of the 'Cache-Control' header.
System::Net::Http::Headers::HttpRequestHeaders::HttpRequestHeaders
HttpRequestHeaders()
Constructs a new instance.
System::Net::Http::Headers::HttpRequestHeaders::set_Host
void set_Host(String value)
Sets a value of the 'Host' header.
System::Net::Http::Headers::HttpRequestHeaders::get_Expect
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< NameValueWithParametersHeaderValue > > > get_Expect()
Returns value of the 'Expect' header.
System::Net::Http::Headers::HttpRequestHeaders::set_Date
void set_Date(Nullable< DateTimeOffset > value)
Sets a value of the 'Date' header.
System::Net::Http::Headers::HttpRequestHeaders::get_Referrer
System::SharedPtr< Uri > get_Referrer()
Gets a value of the 'Referer' header.
System::Net::Http::Headers::HttpRequestHeaders::get_UserAgent
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ProductInfoHeaderValue > > > get_UserAgent()
Returns a value of the 'User-Agent' header.
System::Net::Http::Headers::HttpRequestHeaders::get_Upgrade
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ProductHeaderValue > > > get_Upgrade()
Returns a value of the 'Upgrade' header.
System::Net::Http::Headers::HttpRequestHeaders::get_Range
System::SharedPtr< RangeHeaderValue > get_Range()
Gets a value of the 'Range' header.
System::Net::Http::Headers::HttpRequestHeaders::get_Authorization
System::SharedPtr< AuthenticationHeaderValue > get_Authorization()
Gets a value of the 'Authorization' header.
System::Net::Http::Headers::HttpRequestHeaders::get_Connection
System::SharedPtr< HttpHeaderValueCollection< String > > get_Connection()
Returns a value of the 'Connection' header.
System::Net::Http::Headers::HttpRequestHeaders::set_Range
void set_Range(System::SharedPtr< RangeHeaderValue > value)
Sets a value of the 'Range' header.
System::Net::Http::Headers::HttpRequestHeaders::get_Pragma
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< NameValueHeaderValue > > > get_Pragma()
Returns a value of the 'Pragma' header.
System::Net::Http::Headers::HttpRequestHeaders::AddHeaders
void AddHeaders(System::SharedPtr< HttpHeaders > sourceHeaders) override
Concatenates the specified HttpHeaders-class instance with the current one.
System::Net::Http::Headers::HttpRequestHeaders::get_IfUnmodifiedSince
Nullable< DateTimeOffset > get_IfUnmodifiedSince()
Gets a value of the 'If-Unmodified-Since' header.
System::Net::Http::Headers::HttpRequestHeaders::get_MaxForwards
Nullable< int32_t > get_MaxForwards()
Gets a value of the 'Max-Forwards' header.
System::Net::Http::Headers::HttpRequestHeaders::get_TransferEncodingChunked
Nullable< bool > get_TransferEncodingChunked()
Gets a value that indicates if the 'Transfer-Encoding' header value contains 'Chunked'.
System::Net::Http::Headers::HttpRequestHeaders::get_Accept
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< MediaTypeWithQualityHeaderValue > > > get_Accept()
Returns a value of the 'Accept' header.
System::Net::Http::Headers::HttpRequestHeaders::AddKnownHeaders
static void AddKnownHeaders(System::SharedPtr< Collections::Generic::HashSet< String > > headerSet)
Adds the known headers to the specified collection.
System::Net::Http::Headers::HttpRequestHeaders::get_ExpectContinue
Nullable< bool > get_ExpectContinue()
Gets a value that indicates if the 'Expect' header value contains 'Continue'.
System::Net::Http::Headers::HttpRequestHeaders::set_TransferEncodingChunked
void set_TransferEncodingChunked(Nullable< bool > value)
Sets a value that indicates if the 'Transfer-Encoding' header value contains 'Chunked'.
System::Net::Http::Headers::HttpRequestHeaders::set_IfModifiedSince
void set_IfModifiedSince(Nullable< DateTimeOffset > value)
Sets a value of the 'If-Modified-Since' header.
System::Net::Http::Headers::HttpRequestHeaders::set_ExpectContinue
void set_ExpectContinue(Nullable< bool > value)
Sets a value that indicates if the 'Expect' header value contains 'Continue'.
System::Net::Http::Headers::HttpRequestHeaders::get_ConnectionClose
Nullable< bool > get_ConnectionClose()
Gets a value that indicates if the 'Connection' header value contains 'Close'.
System::Net::Http::Headers::HttpRequestHeaders::set_Authorization
void set_Authorization(System::SharedPtr< AuthenticationHeaderValue > value)
Sets a value of the 'Authorization' header.
System::Net::Http::Headers::HttpRequestHeaders::get_AcceptLanguage
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< StringWithQualityHeaderValue > > > get_AcceptLanguage()
Returns a value of the 'Accept-Language' header.
System::Net::Http::Headers::HttpRequestHeaders::set_IfUnmodifiedSince
void set_IfUnmodifiedSince(Nullable< DateTimeOffset > value)
Sets a value of the 'If-Unmodified-Since' header.
System::Net::Http::Headers::HttpRequestHeaders::get_Via
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ViaHeaderValue > > > get_Via()
Returns a value of the 'Via' header.
System::Net::Http::Headers::HttpRequestHeaders::get_IfModifiedSince
Nullable< DateTimeOffset > get_IfModifiedSince()
Gets a value of the 'If-Modified-Since' header.
System::Net::Http::Headers::HttpRequestHeaders::set_Referrer
void set_Referrer(System::SharedPtr< Uri > value)
Sets a value of the 'Referer' header.
System::Net::Http::Headers::HttpRequestHeaders::get_From
String get_From()
Gets a value of the 'From' header.
System::Net::Http::Headers::HttpRequestHeaders::get_CacheControl
System::SharedPtr< CacheControlHeaderValue > get_CacheControl()
Gets a value of the 'Cache-Control' header.
System::Net::Http::Headers::HttpRequestHeaders::get_AcceptCharset
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< StringWithQualityHeaderValue > > > get_AcceptCharset()
Returns a value of the 'Accept-Charset' header.
System::Net::Http::Headers::HttpRequestHeaders::get_IfRange
System::SharedPtr< RangeConditionHeaderValue > get_IfRange()
Gets a value of the 'If-Range' header.
System::Net::Http::Headers::HttpRequestHeaders::get_AcceptEncoding
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< StringWithQualityHeaderValue > > > get_AcceptEncoding()
Returns a value of the 'Accept-Encoding' header.
System::Net::Http::Headers::HttpRequestHeaders::set_MaxForwards
void set_MaxForwards(Nullable< int32_t > value)
Sets a value of the 'Max-Forwards' header.
System::Net::Http::Headers::HttpRequestHeaders::get_Trailer
System::SharedPtr< HttpHeaderValueCollection< String > > get_Trailer()
Returns a value of the 'Trailer' header.
System::Net::Http::Headers::HttpRequestHeaders::set_ConnectionClose
void set_ConnectionClose(Nullable< bool > value)
Sets a value that indicates if the 'Connection' header value contains 'Close'.
System::Net::Http::Headers::HttpRequestHeaders::get_Host
String get_Host()
Gets a value of the 'Host' header.
System::Net::Http::Headers::HttpRequestHeaders::set_ProxyAuthorization
void set_ProxyAuthorization(System::SharedPtr< AuthenticationHeaderValue > value)
Sets a value of the 'Proxy-Authorization' header.
System::Net::Http::Headers::HttpRequestHeaders::get_Date
Nullable< DateTimeOffset > get_Date()
Gets a value of the 'Date' header.
System::Net::Http::Headers::HttpRequestHeaders::get_TransferEncoding
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< TransferCodingHeaderValue > > > get_TransferEncoding()
Returns a value of the 'Transfer-Encoding' header.
System::Net::Http::Headers::HttpRequestHeaders::set_From
void set_From(String value)
Sets a value of the 'From' header.
System::Nullable< bool >
System::SmartPtr
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition:
smart_ptr.h:180
System::String
String class used across the library. Is a substitute for C# System.String when translating code....
Definition:
string.h:122
System
Definition:
db_command.h:9
include
net
http
headers
http_request_headers.h
Generated by
1.9.4