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
21namespace System { namespace Net { namespace Http { namespace Headers {
22
23class HttpGeneralHeaders;
24
29class ASPOSECPP_SHARED_CLASS HttpRequestHeaders final : public System::Net::Http::Headers::HttpHeaders
30{
35
37 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
39 ASPOSECPP_SHARED_RTTI_INFO_DECL();
40
41public:
44 ASPOSECPP_SHARED_API
66 ASPOSECPP_SHARED_API
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);
95 ASPOSECPP_SHARED_API void set_IfModifiedSince(Nullable<DateTimeOffset> value);
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);
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
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);
181 ASPOSECPP_SHARED_API void set_TransferEncodingChunked(Nullable<bool> value);
193
195 ASPOSECPP_SHARED_API HttpRequestHeaders();
196
199 ASPOSECPP_SHARED_API static void
202 ASPOSECPP_SHARED_API void AddHeaders(System::SharedPtr<HttpHeaders> sourceHeaders) override;
203
204protected:
205#ifdef ASPOSE_GET_SHARED_MEMBERS
207 void GetSharedMembers(System::Object::shared_members_type& result) const override;
208#endif
209private:
212 s_parserStore;
222 bool _expectContinueSet;
237
240 get_ExpectCore();
241
244 CreateParserStore();
247 GetParserStore();
249 static System::SharedPtr<Collections::Generic::HashSet<String>> CreateInvalidHeaders();
250
252 void InitStatic();
253};
254
255}}}} // 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 'Request' headers. Objects of this class should only be allocated us...
Definition: http_request_headers.h:30
void set_IfRange(System::SharedPtr< RangeConditionHeaderValue > value)
Sets a value of the 'If-Range' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< EntityTagHeaderValue > > > get_IfNoneMatch()
Returns a value of the 'If-None-Match' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< EntityTagHeaderValue > > > get_IfMatch()
Returns a value of the 'If-Match' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< WarningHeaderValue > > > get_Warning()
Returns a value of the 'Warning' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< TransferCodingWithQualityHeaderValue > > > get_TE()
Returns a value of the 'TE' header.
System::SharedPtr< AuthenticationHeaderValue > get_ProxyAuthorization()
Gets a value of the 'Proxy-Authorization' header.
void set_CacheControl(System::SharedPtr< CacheControlHeaderValue > value)
Sets a value of the 'Cache-Control' header.
HttpRequestHeaders()
Constructs a new instance.
void set_Host(String value)
Sets a value of the 'Host' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< NameValueWithParametersHeaderValue > > > get_Expect()
Returns value of the 'Expect' header.
void set_Date(Nullable< DateTimeOffset > value)
Sets a value of the 'Date' header.
System::SharedPtr< Uri > get_Referrer()
Gets a value of the 'Referer' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ProductInfoHeaderValue > > > get_UserAgent()
Returns a value of the 'User-Agent' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ProductHeaderValue > > > get_Upgrade()
Returns a value of the 'Upgrade' header.
System::SharedPtr< RangeHeaderValue > get_Range()
Gets a value of the 'Range' header.
System::SharedPtr< AuthenticationHeaderValue > get_Authorization()
Gets a value of the 'Authorization' header.
System::SharedPtr< HttpHeaderValueCollection< String > > get_Connection()
Returns a value of the 'Connection' header.
void set_Range(System::SharedPtr< RangeHeaderValue > value)
Sets a value of the 'Range' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< NameValueHeaderValue > > > get_Pragma()
Returns a value of the 'Pragma' header.
void AddHeaders(System::SharedPtr< HttpHeaders > sourceHeaders) override
Concatenates the specified HttpHeaders-class instance with the current one.
Nullable< DateTimeOffset > get_IfUnmodifiedSince()
Gets a value of the 'If-Unmodified-Since' header.
Nullable< int32_t > get_MaxForwards()
Gets a value of the 'Max-Forwards' header.
Nullable< bool > get_TransferEncodingChunked()
Gets a value that indicates if the 'Transfer-Encoding' header value contains 'Chunked'.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< MediaTypeWithQualityHeaderValue > > > get_Accept()
Returns a value of the 'Accept' header.
static void AddKnownHeaders(System::SharedPtr< Collections::Generic::HashSet< String > > headerSet)
Adds the known headers to the specified collection.
Nullable< bool > get_ExpectContinue()
Gets a value that indicates if the 'Expect' header value contains 'Continue'.
void set_TransferEncodingChunked(Nullable< bool > value)
Sets a value that indicates if the 'Transfer-Encoding' header value contains 'Chunked'.
void set_IfModifiedSince(Nullable< DateTimeOffset > value)
Sets a value of the 'If-Modified-Since' header.
void set_ExpectContinue(Nullable< bool > value)
Sets a value that indicates if the 'Expect' header value contains 'Continue'.
Nullable< bool > get_ConnectionClose()
Gets a value that indicates if the 'Connection' header value contains 'Close'.
void set_Authorization(System::SharedPtr< AuthenticationHeaderValue > value)
Sets a value of the 'Authorization' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< StringWithQualityHeaderValue > > > get_AcceptLanguage()
Returns a value of the 'Accept-Language' header.
void set_IfUnmodifiedSince(Nullable< DateTimeOffset > value)
Sets a value of the 'If-Unmodified-Since' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< ViaHeaderValue > > > get_Via()
Returns a value of the 'Via' header.
Nullable< DateTimeOffset > get_IfModifiedSince()
Gets a value of the 'If-Modified-Since' header.
void set_Referrer(System::SharedPtr< Uri > value)
Sets a value of the 'Referer' header.
String get_From()
Gets a value of the 'From' header.
System::SharedPtr< CacheControlHeaderValue > get_CacheControl()
Gets a value of the 'Cache-Control' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< StringWithQualityHeaderValue > > > get_AcceptCharset()
Returns a value of the 'Accept-Charset' header.
System::SharedPtr< RangeConditionHeaderValue > get_IfRange()
Gets a value of the 'If-Range' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< StringWithQualityHeaderValue > > > get_AcceptEncoding()
Returns a value of the 'Accept-Encoding' header.
void set_MaxForwards(Nullable< int32_t > value)
Sets a value of the 'Max-Forwards' header.
System::SharedPtr< HttpHeaderValueCollection< String > > get_Trailer()
Returns a value of the 'Trailer' header.
void set_ConnectionClose(Nullable< bool > value)
Sets a value that indicates if the 'Connection' header value contains 'Close'.
String get_Host()
Gets a value of the 'Host' header.
void set_ProxyAuthorization(System::SharedPtr< AuthenticationHeaderValue > value)
Sets a value of the 'Proxy-Authorization' header.
Nullable< DateTimeOffset > get_Date()
Gets a value of the 'Date' header.
System::SharedPtr< HttpHeaderValueCollection< System::SharedPtr< TransferCodingHeaderValue > > > get_TransferEncoding()
Returns a value of the 'Transfer-Encoding' header.
void set_From(String value)
Sets a value of the 'From' header.
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
Definition: db_command.h:9