CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
http_content_headers.h
1
2
#pragma once
3
4
#include <cstdint>
5
#include <system/array.h>
6
#include <system/collections/dictionary.h>
7
#include <system/collections/hashset.h>
8
#include <system/nullable.h>
9
#include <system/object.h>
10
#include <system/shared_ptr.h>
11
#include <system/string.h>
12
#include <system/uri.h>
13
14
#include <net/http/headers/content_disposition_header_value.h>
15
#include <net/http/headers/content_range_header_value.h>
16
//#include <net/http/headers/http_header_parser.h>
17
#include <net/http/headers/http_header_value_collection.h>
18
#include <net/http/headers/http_headers.h>
19
#include <net/http/headers/media_type_header_value.h>
20
21
namespace
System
{
namespace
Net {
namespace
Http {
namespace
Headers {
22
27
class
ASPOSECPP_SHARED_CLASS
HttpContentHeaders
final :
public
System::Net::Http::Headers::HttpHeaders
28
{
30
typedef
HttpContentHeaders
ThisType
;
32
typedef
System::Net::Http::Headers::HttpHeaders
BaseType
;
33
35
typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
37
ASPOSECPP_SHARED_RTTI_INFO_DECL();
38
39
public
:
42
ASPOSECPP_SHARED_API
System::SharedPtr<Collections::Generic::ICollection<String>
>
get_Allow
();
45
ASPOSECPP_SHARED_API
System::SharedPtr<ContentDispositionHeaderValue>
get_ContentDisposition
();
48
ASPOSECPP_SHARED_API
void
set_ContentDisposition
(
System::SharedPtr<ContentDispositionHeaderValue>
value);
51
ASPOSECPP_SHARED_API
System::SharedPtr<Collections::Generic::ICollection<String>
>
get_ContentEncoding
();
54
ASPOSECPP_SHARED_API
System::SharedPtr<Collections::Generic::ICollection<String>
>
get_ContentLanguage
();
57
ASPOSECPP_SHARED_API
Nullable<int64_t>
get_ContentLength
();
60
ASPOSECPP_SHARED_API
void
set_ContentLength
(
Nullable<int64_t>
value);
63
ASPOSECPP_SHARED_API
System::SharedPtr<Uri>
get_ContentLocation
();
66
ASPOSECPP_SHARED_API
void
set_ContentLocation
(
System::SharedPtr<Uri>
value);
69
ASPOSECPP_SHARED_API
System::ArrayPtr<uint8_t>
get_ContentMD5
();
72
ASPOSECPP_SHARED_API
void
set_ContentMD5
(
System::ArrayPtr<uint8_t>
value);
75
ASPOSECPP_SHARED_API
System::SharedPtr<ContentRangeHeaderValue>
get_ContentRange
();
78
ASPOSECPP_SHARED_API
void
set_ContentRange
(
System::SharedPtr<ContentRangeHeaderValue>
value);
81
ASPOSECPP_SHARED_API
System::SharedPtr<MediaTypeHeaderValue>
get_ContentType
();
84
ASPOSECPP_SHARED_API
void
set_ContentType
(
System::SharedPtr<MediaTypeHeaderValue>
value);
87
ASPOSECPP_SHARED_API
Nullable<DateTimeOffset>
get_Expires
();
90
ASPOSECPP_SHARED_API
void
set_Expires
(
Nullable<DateTimeOffset>
value);
93
ASPOSECPP_SHARED_API
Nullable<DateTimeOffset>
get_LastModified
();
96
ASPOSECPP_SHARED_API
void
set_LastModified
(
Nullable<DateTimeOffset>
value);
97
100
ASPOSECPP_SHARED_API
HttpContentHeaders
(
HeaderFunc
<
Nullable<int64_t>
> calculateLengthFunc);
101
104
ASPOSECPP_SHARED_API
static
void
AddKnownHeaders
(
System::SharedPtr
<
Collections::Generic::HashSet<String>
> headerSet);
105
106
private
:
108
static
System::SharedPtr<Collections::Generic::Dictionary<String, System::SharedPtr<HttpHeaderParser>
>>
109
s_parserStore;
111
static
System::SharedPtr<Collections::Generic::HashSet<String>
> s_invalidHeaders;
113
HeaderFunc<Nullable<int64_t>
> _calculateLengthFunc;
115
bool
_contentLengthSet;
117
System::SharedPtr<HttpHeaderValueCollection<String>
> _allow;
119
System::SharedPtr<HttpHeaderValueCollection<String>
> _contentEncoding;
121
System::SharedPtr<HttpHeaderValueCollection<String>
> _contentLanguage;
122
124
static
System::SharedPtr<Collections::Generic::Dictionary<String, System::SharedPtr<HttpHeaderParser>
>>
125
CreateParserStore();
127
static
System::SharedPtr<Collections::Generic::Dictionary<String, System::SharedPtr<HttpHeaderParser>
>>
128
GetParserStore();
130
static
System::SharedPtr<Collections::Generic::HashSet<String>
> CreateInvalidHeaders();
132
static
System::SharedPtr<Collections::Generic::HashSet<String>
> GetInvalidHeaders();
133
135
void
InitStatic();
136
};
137
138
}}}}
// namespace System::Net::Http::Headers
System::Collections::Generic::HashSet
Forward declaration of HashSet class.
Definition:
hashset.h:82
System::Net::Http::Headers::HttpContentHeaders
Represents the collection of the 'Content' headers. Objects of this class should only be allocated us...
Definition:
http_content_headers.h:28
System::Net::Http::Headers::HttpContentHeaders::get_ContentLocation
System::SharedPtr< Uri > get_ContentLocation()
Gets a value of the 'Content-Location' header.
System::Net::Http::Headers::HttpContentHeaders::get_ContentMD5
System::ArrayPtr< uint8_t > get_ContentMD5()
Gets a value of the 'Content-MD5' header.
System::Net::Http::Headers::HttpContentHeaders::set_ContentLength
void set_ContentLength(Nullable< int64_t > value)
Sets a value of the 'Content-Length' header.
System::Net::Http::Headers::HttpContentHeaders::get_Allow
System::SharedPtr< Collections::Generic::ICollection< String > > get_Allow()
Gets a value of the 'Allow' header.
System::Net::Http::Headers::HttpContentHeaders::set_ContentMD5
void set_ContentMD5(System::ArrayPtr< uint8_t > value)
Sets a value of the 'Content-MD5' header.
System::Net::Http::Headers::HttpContentHeaders::set_ContentDisposition
void set_ContentDisposition(System::SharedPtr< ContentDispositionHeaderValue > value)
Sets a value of the 'Content-Disposition' header.
System::Net::Http::Headers::HttpContentHeaders::HttpContentHeaders
HttpContentHeaders(HeaderFunc< Nullable< int64_t > > calculateLengthFunc)
Constructs a new instance.
System::Net::Http::Headers::HttpContentHeaders::get_ContentRange
System::SharedPtr< ContentRangeHeaderValue > get_ContentRange()
Gets a value of the 'Content-Range' header.
System::Net::Http::Headers::HttpContentHeaders::get_ContentLanguage
System::SharedPtr< Collections::Generic::ICollection< String > > get_ContentLanguage()
Gets a value of the 'Content-Language' header.
System::Net::Http::Headers::HttpContentHeaders::get_Expires
Nullable< DateTimeOffset > get_Expires()
Gets a value of the 'Expires' header.
System::Net::Http::Headers::HttpContentHeaders::get_ContentType
System::SharedPtr< MediaTypeHeaderValue > get_ContentType()
Gets a value of the 'Content-Type' header.
System::Net::Http::Headers::HttpContentHeaders::AddKnownHeaders
static void AddKnownHeaders(System::SharedPtr< Collections::Generic::HashSet< String > > headerSet)
Adds the known headers to the specified collection.
System::Net::Http::Headers::HttpContentHeaders::get_LastModified
Nullable< DateTimeOffset > get_LastModified()
Gets a value of the 'Last-Modified' header.
System::Net::Http::Headers::HttpContentHeaders::get_ContentLength
Nullable< int64_t > get_ContentLength()
Gets a value of the 'Content-Length' header.
System::Net::Http::Headers::HttpContentHeaders::set_Expires
void set_Expires(Nullable< DateTimeOffset > value)
Sets a value of the 'Expires' header.
System::Net::Http::Headers::HttpContentHeaders::set_LastModified
void set_LastModified(Nullable< DateTimeOffset > value)
Sets a value of the 'Last-Modified' header.
System::Net::Http::Headers::HttpContentHeaders::get_ContentDisposition
System::SharedPtr< ContentDispositionHeaderValue > get_ContentDisposition()
Gets a value of the 'Content-Disposition' header.
System::Net::Http::Headers::HttpContentHeaders::set_ContentRange
void set_ContentRange(System::SharedPtr< ContentRangeHeaderValue > value)
Sets a value of the 'Content-Range' header.
System::Net::Http::Headers::HttpContentHeaders::get_ContentEncoding
System::SharedPtr< Collections::Generic::ICollection< String > > get_ContentEncoding()
Gets a value of the 'Content-Encoding' header.
System::Net::Http::Headers::HttpContentHeaders::set_ContentType
void set_ContentType(System::SharedPtr< MediaTypeHeaderValue > value)
Sets a value of the 'Content-Type' header.
System::Net::Http::Headers::HttpContentHeaders::set_ContentLocation
void set_ContentLocation(System::SharedPtr< Uri > value)
Sets a value of the 'Content-Location' header.
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::Nullable< int64_t >
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::Net::Http::Headers::HeaderFunc
System::MulticastDelegate< TResult()> HeaderFunc
Definition:
http_headers.h:24
System
Definition:
db_command.h:9
include
net
http
headers
http_content_headers.h
Generated by
1.9.4