CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
http_response_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/transfer_coding_header_value.h>
9
#include <net/http/headers/via_header_value.h>
10
#include <net/http/headers/http_headers.h>
11
#include <net/http/headers/http_header_value_collection.h>
12
#include <net/http/headers/product_info_header_value.h>
13
#include <net/http/headers/retry_condition_header_value.h>
14
#include <net/http/headers/cache_control_header_value.h>
15
#include <net/http/headers/warning_header_value.h>
16
17
namespace
System
{
namespace
Net {
namespace
Http {
namespace
Headers {
18
19
class
HttpGeneralHeaders;
20
25
class
ASPOSECPP_SHARED_CLASS
HttpResponseHeaders
final :
public
System::Net::Http::Headers::HttpHeaders
26
{
28
typedef
HttpResponseHeaders
ThisType
;
30
typedef
System::Net::Http::Headers::HttpHeaders
BaseType
;
31
33
typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
35
ASPOSECPP_SHARED_RTTI_INFO_DECL();
36
37
public
:
40
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<String>
>
get_AcceptRanges
();
43
ASPOSECPP_SHARED_API
Nullable<TimeSpan>
get_Age
();
46
ASPOSECPP_SHARED_API
void
set_Age
(
Nullable<TimeSpan>
value);
49
ASPOSECPP_SHARED_API
System::SharedPtr<EntityTagHeaderValue>
get_ETag
();
52
ASPOSECPP_SHARED_API
void
set_ETag
(
System::SharedPtr<EntityTagHeaderValue>
value);
55
ASPOSECPP_SHARED_API
System::SharedPtr<Uri>
get_Location
();
58
ASPOSECPP_SHARED_API
void
set_Location
(
System::SharedPtr<Uri>
value);
61
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<AuthenticationHeaderValue>
>>
62
get_ProxyAuthenticate
();
65
ASPOSECPP_SHARED_API
System::SharedPtr<RetryConditionHeaderValue>
get_RetryAfter
();
68
ASPOSECPP_SHARED_API
void
set_RetryAfter
(
System::SharedPtr<RetryConditionHeaderValue>
value);
71
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<ProductInfoHeaderValue>
>>
72
get_Server
();
75
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<String>
>
get_Vary
();
78
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<AuthenticationHeaderValue>
>>
79
get_WwwAuthenticate
();
82
ASPOSECPP_SHARED_API
System::SharedPtr<CacheControlHeaderValue>
get_CacheControl
();
85
ASPOSECPP_SHARED_API
void
set_CacheControl
(
System::SharedPtr<CacheControlHeaderValue>
value);
88
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<String>
>
get_Connection
();
91
ASPOSECPP_SHARED_API
Nullable<bool>
get_ConnectionClose
();
94
ASPOSECPP_SHARED_API
void
set_ConnectionClose
(
Nullable<bool>
value);
97
ASPOSECPP_SHARED_API
Nullable<DateTimeOffset>
get_Date
();
100
ASPOSECPP_SHARED_API
void
set_Date
(
Nullable<DateTimeOffset>
value);
103
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<NameValueHeaderValue>
>>
104
get_Pragma
();
107
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<String>
>
get_Trailer
();
110
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<TransferCodingHeaderValue>
>>
111
get_TransferEncoding
();
114
ASPOSECPP_SHARED_API
Nullable<bool>
get_TransferEncodingChunked
();
117
ASPOSECPP_SHARED_API
void
set_TransferEncodingChunked
(
Nullable<bool>
value);
120
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<ProductHeaderValue>
>>
121
get_Upgrade
();
124
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<ViaHeaderValue>
>>
get_Via
();
127
ASPOSECPP_SHARED_API
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<WarningHeaderValue>
>>
128
get_Warning
();
129
131
ASPOSECPP_SHARED_API
HttpResponseHeaders
();
132
135
ASPOSECPP_SHARED_API
static
void
136
AddKnownHeaders
(
System::SharedPtr
<
Collections::Generic::HashSet<String>
> headerSet);
138
ASPOSECPP_SHARED_API
virtual
void
AddHeaders
(
System::SharedPtr<HttpHeaders>
sourceHeaders)
override
;
139
140
protected
:
141
#ifdef ASPOSE_GET_SHARED_MEMBERS
143
void
GetSharedMembers(System::Object::shared_members_type& result)
const override
;
144
#endif
145
146
private
:
148
static
System::SharedPtr<Collections::Generic::Dictionary<String, System::SharedPtr<HttpHeaderParser>
>>
149
s_parserStore;
151
static
System::SharedPtr<Collections::Generic::HashSet<String>
> s_invalidHeaders;
153
System::SharedPtr<HttpGeneralHeaders>
_generalHeaders;
155
System::SharedPtr<HttpHeaderValueCollection<String>
> _acceptRanges;
157
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<AuthenticationHeaderValue>
>> _wwwAuthenticate;
159
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<AuthenticationHeaderValue>
>> _proxyAuthenticate;
161
System::SharedPtr<HttpHeaderValueCollection<System::SharedPtr<ProductInfoHeaderValue>
>> _server;
163
System::SharedPtr<HttpHeaderValueCollection<String>
> _vary;
164
166
static
System::SharedPtr<Collections::Generic::Dictionary<String, System::SharedPtr<HttpHeaderParser>
>>
167
CreateParserStore();
169
static
System::SharedPtr<Collections::Generic::Dictionary<String, System::SharedPtr<HttpHeaderParser>
>>
170
GetParserStore();
172
static
System::SharedPtr<Collections::Generic::HashSet<String>
> CreateInvalidHeaders();
173
175
static
void
InitStatic();
176
};
177
178
}}}}
// 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::HttpResponseHeaders
Represents the collection of the 'Response' headers. Objects of this class should only be allocated u...
Definition:
http_response_headers.h:26
System::Net::Http::Headers::HttpResponseHeaders::get_Connection
System::SharedPtr< HttpHeaderValueCollection< String > > get_Connection()
Returns a value of the 'Connection' header.
System::Net::Http::Headers::HttpResponseHeaders::get_Upgrade
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ProductHeaderValue > > > get_Upgrade()
Returns a value of the 'Upgrade' header.
System::Net::Http::Headers::HttpResponseHeaders::get_CacheControl
System::SharedPtr< CacheControlHeaderValue > get_CacheControl()
Gets a value of the 'Cache-Control' header.
System::Net::Http::Headers::HttpResponseHeaders::get_Vary
System::SharedPtr< HttpHeaderValueCollection< String > > get_Vary()
Returns a value of the 'Vary' header.
System::Net::Http::Headers::HttpResponseHeaders::get_Server
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ProductInfoHeaderValue > > > get_Server()
Returns a value of the 'Server' header.
System::Net::Http::Headers::HttpResponseHeaders::get_Pragma
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< NameValueHeaderValue > > > get_Pragma()
Returns a value of the 'Pragma' header.
System::Net::Http::Headers::HttpResponseHeaders::set_Date
void set_Date(Nullable< DateTimeOffset > value)
Sets a value of the 'Date' header.
System::Net::Http::Headers::HttpResponseHeaders::get_AcceptRanges
System::SharedPtr< HttpHeaderValueCollection< String > > get_AcceptRanges()
Returns a value of the 'Accept-Ranges' header.
System::Net::Http::Headers::HttpResponseHeaders::get_WwwAuthenticate
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< AuthenticationHeaderValue > > > get_WwwAuthenticate()
Returns a value of the 'WWW-Authenticate' header.
System::Net::Http::Headers::HttpResponseHeaders::set_ConnectionClose
void set_ConnectionClose(Nullable< bool > value)
Sets a value that indicates if the 'Connection' header value contains 'Close'.
System::Net::Http::Headers::HttpResponseHeaders::get_TransferEncoding
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< TransferCodingHeaderValue > > > get_TransferEncoding()
Returns a value of the 'Transfer-Encoding' header.
System::Net::Http::Headers::HttpResponseHeaders::get_TransferEncodingChunked
Nullable< bool > get_TransferEncodingChunked()
Gets a value that indicates if the 'Transfer-Encoding' header value contains 'Chunked'.
System::Net::Http::Headers::HttpResponseHeaders::get_ETag
System::SharedPtr< EntityTagHeaderValue > get_ETag()
Gets a value of the 'ETag' header.
System::Net::Http::Headers::HttpResponseHeaders::get_RetryAfter
System::SharedPtr< RetryConditionHeaderValue > get_RetryAfter()
Gets a value of the 'Retry-After' header.
System::Net::Http::Headers::HttpResponseHeaders::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::HttpResponseHeaders::HttpResponseHeaders
HttpResponseHeaders()
Constructs a new instance.
System::Net::Http::Headers::HttpResponseHeaders::get_Date
Nullable< DateTimeOffset > get_Date()
Gets a value of the 'Date' header.
System::Net::Http::Headers::HttpResponseHeaders::set_Age
void set_Age(Nullable< TimeSpan > value)
Sets a value of the 'Age' header.
System::Net::Http::Headers::HttpResponseHeaders::get_Via
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ViaHeaderValue > > > get_Via()
Returns a value of the 'Via' header.
System::Net::Http::Headers::HttpResponseHeaders::get_Warning
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< WarningHeaderValue > > > get_Warning()
Returns a value of the 'Warning' header.
System::Net::Http::Headers::HttpResponseHeaders::get_ConnectionClose
Nullable< bool > get_ConnectionClose()
Gets a value that indicates if the 'Connection' header value contains 'Close'.
System::Net::Http::Headers::HttpResponseHeaders::set_RetryAfter
void set_RetryAfter(System::SharedPtr< RetryConditionHeaderValue > value)
Sets a value of the 'Retry-After' header.
System::Net::Http::Headers::HttpResponseHeaders::get_ProxyAuthenticate
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< AuthenticationHeaderValue > > > get_ProxyAuthenticate()
Returns a value of the 'Proxy-Authenticate' header.
System::Net::Http::Headers::HttpResponseHeaders::AddKnownHeaders
static void AddKnownHeaders(System::SharedPtr< Collections::Generic::HashSet< String > > headerSet)
Adds the known headers to the specified collection.
System::Net::Http::Headers::HttpResponseHeaders::AddHeaders
virtual void AddHeaders(System::SharedPtr< HttpHeaders > sourceHeaders) override
Concatenates the specified HttpHeaders-class instance with the current one.
System::Net::Http::Headers::HttpResponseHeaders::get_Location
System::SharedPtr< Uri > get_Location()
Gets a value of the 'Location' header.
System::Net::Http::Headers::HttpResponseHeaders::get_Age
Nullable< TimeSpan > get_Age()
Gets a value of the 'Age' header.
System::Net::Http::Headers::HttpResponseHeaders::set_ETag
void set_ETag(System::SharedPtr< EntityTagHeaderValue > value)
Sets a value of the 'ETag' header.
System::Net::Http::Headers::HttpResponseHeaders::set_Location
void set_Location(System::SharedPtr< Uri > value)
Sets a value of the 'Location' header.
System::Net::Http::Headers::HttpResponseHeaders::get_Trailer
System::SharedPtr< HttpHeaderValueCollection< String > > get_Trailer()
Returns a value of the 'Trailer' header.
System::Net::Http::Headers::HttpResponseHeaders::set_CacheControl
void set_CacheControl(System::SharedPtr< CacheControlHeaderValue > value)
Sets a value of the 'Cache-Control' header.
System::Nullable
Forward declaration.
Definition:
nullable.h:74
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
Definition:
db_command.h:9
include
net
http
headers
http_response_headers.h
Generated by
1.9.4