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
17namespace System { namespace Net { namespace Http { namespace Headers {
18
19class HttpGeneralHeaders;
20
25class ASPOSECPP_SHARED_CLASS HttpResponseHeaders final : public System::Net::Http::Headers::HttpHeaders
26{
31
33 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
35 ASPOSECPP_SHARED_RTTI_INFO_DECL();
36
37public:
43 ASPOSECPP_SHARED_API Nullable<TimeSpan> get_Age();
46 ASPOSECPP_SHARED_API void set_Age(Nullable<TimeSpan> value);
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);
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);
117 ASPOSECPP_SHARED_API void set_TransferEncodingChunked(Nullable<bool> value);
129
131 ASPOSECPP_SHARED_API HttpResponseHeaders();
132
135 ASPOSECPP_SHARED_API static void
138 ASPOSECPP_SHARED_API virtual void AddHeaders(System::SharedPtr<HttpHeaders> sourceHeaders) override;
139
140protected:
141#ifdef ASPOSE_GET_SHARED_MEMBERS
143 void GetSharedMembers(System::Object::shared_members_type& result) const override;
144#endif
145
146private:
149 s_parserStore;
164
167 CreateParserStore();
170 GetParserStore();
172 static System::SharedPtr<Collections::Generic::HashSet<String>> CreateInvalidHeaders();
173
175 static void InitStatic();
176};
177
178}}}} // namespace System::Net::Http::Headers
Forward declaration of HashSet class.
Definition: hashset.h:82
The collection of the HTTP headers. Objects of this class should only be allocated using System::Make...
Definition: http_headers.h:35
Represents the collection of the 'Response' headers. Objects of this class should only be allocated u...
Definition: http_response_headers.h:26
System::SharedPtr< HttpHeaderValueCollection< String > > get_Connection()
Returns a value of the 'Connection' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ProductHeaderValue > > > get_Upgrade()
Returns a value of the 'Upgrade' header.
System::SharedPtr< CacheControlHeaderValue > get_CacheControl()
Gets a value of the 'Cache-Control' header.
System::SharedPtr< HttpHeaderValueCollection< String > > get_Vary()
Returns a value of the 'Vary' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ProductInfoHeaderValue > > > get_Server()
Returns a value of the 'Server' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< NameValueHeaderValue > > > get_Pragma()
Returns a value of the 'Pragma' header.
void set_Date(Nullable< DateTimeOffset > value)
Sets a value of the 'Date' header.
System::SharedPtr< HttpHeaderValueCollection< String > > get_AcceptRanges()
Returns a value of the 'Accept-Ranges' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< AuthenticationHeaderValue > > > get_WwwAuthenticate()
Returns a value of the 'WWW-Authenticate' header.
void set_ConnectionClose(Nullable< bool > value)
Sets a value that indicates if the 'Connection' header value contains 'Close'.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< TransferCodingHeaderValue > > > get_TransferEncoding()
Returns a value of the 'Transfer-Encoding' header.
Nullable< bool > get_TransferEncodingChunked()
Gets a value that indicates if the 'Transfer-Encoding' header value contains 'Chunked'.
System::SharedPtr< EntityTagHeaderValue > get_ETag()
Gets a value of the 'ETag' header.
System::SharedPtr< RetryConditionHeaderValue > get_RetryAfter()
Gets a value of the 'Retry-After' header.
void set_TransferEncodingChunked(Nullable< bool > value)
Sets a value that indicates if the 'Transfer-Encoding' header value contains 'Chunked'.
HttpResponseHeaders()
Constructs a new instance.
Nullable< DateTimeOffset > get_Date()
Gets a value of the 'Date' header.
void set_Age(Nullable< TimeSpan > value)
Sets a value of the 'Age' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ViaHeaderValue > > > get_Via()
Returns a value of the 'Via' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< WarningHeaderValue > > > get_Warning()
Returns a value of the 'Warning' header.
Nullable< bool > get_ConnectionClose()
Gets a value that indicates if the 'Connection' header value contains 'Close'.
void set_RetryAfter(System::SharedPtr< RetryConditionHeaderValue > value)
Sets a value of the 'Retry-After' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< AuthenticationHeaderValue > > > get_ProxyAuthenticate()
Returns a value of the 'Proxy-Authenticate' header.
static void AddKnownHeaders(System::SharedPtr< Collections::Generic::HashSet< String > > headerSet)
Adds the known headers to the specified collection.
virtual void AddHeaders(System::SharedPtr< HttpHeaders > sourceHeaders) override
Concatenates the specified HttpHeaders-class instance with the current one.
System::SharedPtr< Uri > get_Location()
Gets a value of the 'Location' header.
Nullable< TimeSpan > get_Age()
Gets a value of the 'Age' header.
void set_ETag(System::SharedPtr< EntityTagHeaderValue > value)
Sets a value of the 'ETag' header.
void set_Location(System::SharedPtr< Uri > value)
Sets a value of the 'Location' header.
System::SharedPtr< HttpHeaderValueCollection< String > > get_Trailer()
Returns a value of the 'Trailer' header.
void set_CacheControl(System::SharedPtr< CacheControlHeaderValue > value)
Sets a value of the 'Cache-Control' header.
Forward declaration.
Definition: nullable.h:74
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9