Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HttpContentHeaders.cs
Go to the documentation of this file.
2
4
5public sealed class HttpContentHeaders : HttpHeaders
6{
7 private readonly HttpContent _parent;
8
9 private bool _contentLengthSet;
10
12
14
16
18 {
19 get
20 {
21 if (_allow == null)
22 {
24 }
25 return _allow;
26 }
27 }
28
40
52
64
65 public long? ContentLength
66 {
67 get
68 {
70 if (!_contentLengthSet && parsedValues == null)
71 {
73 if (computedOrBufferLength.HasValue)
74 {
76 }
78 }
79 if (parsedValues == null)
80 {
81 return null;
82 }
83 return (long)parsedValues;
84 }
85 set
86 {
88 _contentLengthSet = true;
89 }
90 }
91
93 {
94 get
95 {
97 }
98 set
99 {
101 }
102 }
103
104 public byte[]? ContentMD5
105 {
106 get
107 {
108 return (byte[])GetParsedValues(KnownHeaders.ContentMD5.Descriptor);
109 }
110 set
111 {
113 }
114 }
115
117 {
118 get
119 {
121 }
122 set
123 {
125 }
126 }
127
129 {
130 get
131 {
133 }
134 set
135 {
137 }
138 }
139
141 {
142 get
143 {
145 }
146 set
147 {
149 }
150 }
151
153 {
154 get
155 {
157 }
158 set
159 {
161 }
162 }
163
166 {
167 _parent = parent;
168 }
169}
static readonly Action< HttpHeaderValueCollection< string >, string > TokenValidator
static ? DateTimeOffset GetDateTimeOffsetValue(HeaderDescriptor descriptor, HttpHeaders store, DateTimeOffset? defaultValue=null)
HttpHeaderValueCollection< string > _contentLanguage
HttpHeaderValueCollection< string > _contentEncoding
ContentDispositionHeaderValue? ContentDisposition
HttpHeaderValueCollection< string > _allow
void SetParsedValue(HeaderDescriptor descriptor, object value)
void SetOrRemoveParsedValue(HeaderDescriptor descriptor, object value)
object GetParsedValues(HeaderDescriptor descriptor)
static readonly KnownHeader ContentLanguage
static readonly KnownHeader LastModified
static readonly KnownHeader ContentRange
static readonly KnownHeader ContentDisposition
static readonly KnownHeader ContentType
static readonly KnownHeader ContentLength
static readonly KnownHeader ContentLocation
static readonly KnownHeader ContentMD5
static readonly KnownHeader ContentEncoding
static readonly KnownHeader Allow
static readonly KnownHeader Expires
static readonly DateTimeOffset MinValue