Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ContentDispositionHeaderValue.cs
Go to the documentation of this file.
1
using
System.Collections.Generic
;
2
using
System.Diagnostics.CodeAnalysis
;
3
using
System.Globalization
;
4
using
System.Text
;
5
6
namespace
System.Net.Http.Headers
;
7
8
public
class
ContentDispositionHeaderValue
:
ICloneable
9
{
10
private
ObjectCollection<NameValueHeaderValue>
_parameters
;
11
12
private
string
_dispositionType
;
13
14
public
string
DispositionType
15
{
16
get
17
{
18
return
_dispositionType
;
19
}
20
set
21
{
22
CheckDispositionTypeFormat
(
value
,
"value"
);
23
_dispositionType
=
value
;
24
}
25
}
26
27
public
ICollection<NameValueHeaderValue>
Parameters
=>
_parameters
?? (
_parameters
=
new
ObjectCollection<NameValueHeaderValue>
());
28
29
public
string
?
Name
30
{
31
get
32
{
33
return
GetName
(
"name"
);
34
}
35
set
36
{
37
SetName
(
"name"
,
value
);
38
}
39
}
40
41
public
string
?
FileName
42
{
43
get
44
{
45
return
GetName
(
"filename"
);
46
}
47
set
48
{
49
SetName
(
"filename"
,
value
);
50
}
51
}
52
53
public
string
?
FileNameStar
54
{
55
get
56
{
57
return
GetName
(
"filename*"
);
58
}
59
set
60
{
61
SetName
(
"filename*"
,
value
);
62
}
63
}
64
65
public
DateTimeOffset
?
CreationDate
66
{
67
get
68
{
69
return
GetDate
(
"creation-date"
);
70
}
71
set
72
{
73
SetDate
(
"creation-date"
,
value
);
74
}
75
}
76
77
public
DateTimeOffset
?
ModificationDate
78
{
79
get
80
{
81
return
GetDate
(
"modification-date"
);
82
}
83
set
84
{
85
SetDate
(
"modification-date"
,
value
);
86
}
87
}
88
89
public
DateTimeOffset
?
ReadDate
90
{
91
get
92
{
93
return
GetDate
(
"read-date"
);
94
}
95
set
96
{
97
SetDate
(
"read-date"
,
value
);
98
}
99
}
100
101
public
long
?
Size
102
{
103
get
104
{
105
NameValueHeaderValue
nameValueHeaderValue
=
NameValueHeaderValue
.
Find
(
_parameters
,
"size"
);
106
if
(
nameValueHeaderValue
!=
null
)
107
{
108
string
value
=
nameValueHeaderValue
.Value;
109
if
(ulong.TryParse(
value
,
NumberStyles
.Integer,
CultureInfo
.
InvariantCulture
,
out
var
result))
110
{
111
return
(
long
)result;
112
}
113
}
114
return
null
;
115
}
116
set
117
{
118
NameValueHeaderValue
nameValueHeaderValue
=
NameValueHeaderValue
.
Find
(
_parameters
,
"size"
);
119
if
(!
value
.HasValue)
120
{
121
if
(
nameValueHeaderValue
!=
null
)
122
{
123
_parameters
.
Remove
(
nameValueHeaderValue
);
124
}
125
return
;
126
}
127
if
(
value
< 0)
128
{
129
throw
new
ArgumentOutOfRangeException
(
"value"
);
130
}
131
if
(
nameValueHeaderValue
!=
null
)
132
{
133
nameValueHeaderValue.Value =
value
.Value.ToString(
CultureInfo
.
InvariantCulture
);
134
return
;
135
}
136
string
value2
=
value
.Value.ToString(
CultureInfo
.
InvariantCulture
);
137
Parameters
.
Add
(
new
NameValueHeaderValue
(
"size"
,
value2
));
138
}
139
}
140
141
internal
ContentDispositionHeaderValue
()
142
{
143
}
144
145
protected
ContentDispositionHeaderValue
(
ContentDispositionHeaderValue
source
)
146
{
147
_dispositionType
=
source
._dispositionType;
148
_parameters
=
source
._parameters.Clone();
149
}
150
151
public
ContentDispositionHeaderValue
(
string
dispositionType
)
152
{
153
CheckDispositionTypeFormat
(
dispositionType
,
"dispositionType"
);
154
_dispositionType
=
dispositionType
;
155
}
156
157
public
override
string
ToString
()
158
{
159
StringBuilder
stringBuilder
=
System
.
Text
.
StringBuilderCache
.
Acquire
();
160
stringBuilder
.Append(
_dispositionType
);
161
NameValueHeaderValue
.
ToString
(
_parameters
,
';'
,
leadingSeparator
:
true
,
stringBuilder
);
162
return
System
.
Text
.
StringBuilderCache
.
GetStringAndRelease
(
stringBuilder
);
163
}
164
165
public
override
bool
Equals
([
NotNullWhen
(
true
)]
object
?
obj
)
166
{
167
if
(!(
obj
is
ContentDispositionHeaderValue
contentDispositionHeaderValue
))
168
{
169
return
false
;
170
}
171
if
(
string
.
Equals
(
_dispositionType
,
contentDispositionHeaderValue
._dispositionType,
StringComparison
.OrdinalIgnoreCase))
172
{
173
return
HeaderUtilities
.AreEqualCollections(
_parameters
,
contentDispositionHeaderValue
._parameters);
174
}
175
return
false
;
176
}
177
178
public
override
int
GetHashCode
()
179
{
180
return
StringComparer
.
OrdinalIgnoreCase
.GetHashCode(
_dispositionType
) ^
NameValueHeaderValue
.
GetHashCode
(
_parameters
);
181
}
182
183
object
ICloneable
.
Clone
()
184
{
185
return
new
ContentDispositionHeaderValue
(
this
);
186
}
187
188
public
static
ContentDispositionHeaderValue
Parse
(
string
?
input
)
189
{
190
int
index
= 0;
191
return
(
ContentDispositionHeaderValue
)
GenericHeaderParser
.
ContentDispositionParser
.ParseValue(
input
,
null
,
ref
index
);
192
}
193
194
public
static
bool
TryParse
([
NotNullWhen
(
true
)]
string
?
input
, [
NotNullWhen
(
true
)]
out
ContentDispositionHeaderValue
?
parsedValue
)
195
{
196
int
index
= 0;
197
parsedValue
=
null
;
198
if
(
GenericHeaderParser
.
ContentDispositionParser
.TryParseValue(
input
,
null
,
ref
index
,
out
var
parsedValue2
))
199
{
200
parsedValue
= (
ContentDispositionHeaderValue
)
parsedValue2
;
201
return
true
;
202
}
203
return
false
;
204
}
205
206
internal
static
int
GetDispositionTypeLength
(
string
input
,
int
startIndex
,
out
object
parsedValue
)
207
{
208
parsedValue
=
null
;
209
if
(
string
.IsNullOrEmpty(
input
) ||
startIndex
>=
input
.Length)
210
{
211
return
0;
212
}
213
string
dispositionType
;
214
int
dispositionTypeExpressionLength
=
GetDispositionTypeExpressionLength
(
input
,
startIndex
,
out
dispositionType
);
215
if
(
dispositionTypeExpressionLength
== 0)
216
{
217
return
0;
218
}
219
int
num =
startIndex
+
dispositionTypeExpressionLength
;
220
num +=
HttpRuleParser
.
GetWhitespaceLength
(
input
, num);
221
ContentDispositionHeaderValue
contentDispositionHeaderValue
=
new
ContentDispositionHeaderValue
();
222
contentDispositionHeaderValue._dispositionType =
dispositionType
;
223
if
(num <
input
.Length &&
input
[num] ==
';'
)
224
{
225
num++;
226
int
nameValueListLength
=
NameValueHeaderValue
.
GetNameValueListLength
(
input
, num,
';'
, (
ObjectCollection<NameValueHeaderValue>
)
contentDispositionHeaderValue
.Parameters);
227
if
(
nameValueListLength
== 0)
228
{
229
return
0;
230
}
231
parsedValue
=
contentDispositionHeaderValue
;
232
return
num +
nameValueListLength
-
startIndex
;
233
}
234
parsedValue
=
contentDispositionHeaderValue
;
235
return
num -
startIndex
;
236
}
237
238
private
static
int
GetDispositionTypeExpressionLength
(
string
input
,
int
startIndex
,
out
string
dispositionType
)
239
{
240
dispositionType
=
null
;
241
int
tokenLength
=
HttpRuleParser
.
GetTokenLength
(
input
,
startIndex
);
242
if
(
tokenLength
== 0)
243
{
244
return
0;
245
}
246
dispositionType
=
input
.Substring(
startIndex
,
tokenLength
);
247
return
tokenLength
;
248
}
249
250
private
static
void
CheckDispositionTypeFormat
(
string
dispositionType
,
string
parameterName
)
251
{
252
if
(
string
.IsNullOrEmpty(
dispositionType
))
253
{
254
throw
new
ArgumentException
(
System
.
SR
.
net_http_argument_empty_string
,
parameterName
);
255
}
256
if
(
GetDispositionTypeExpressionLength
(
dispositionType
, 0,
out
var
dispositionType2
) == 0 ||
dispositionType2
.Length !=
dispositionType
.Length)
257
{
258
throw
new
FormatException
(
System
.
SR
.
Format
(
CultureInfo
.
InvariantCulture
,
System
.
SR
.
net_http_headers_invalid_value
,
dispositionType
));
259
}
260
}
261
262
private
DateTimeOffset
?
GetDate
(
string
parameter
)
263
{
264
NameValueHeaderValue
nameValueHeaderValue
=
NameValueHeaderValue
.
Find
(
_parameters
,
parameter
);
265
if
(
nameValueHeaderValue
!=
null
)
266
{
267
ReadOnlySpan<char>
readOnlySpan
=
nameValueHeaderValue
.Value;
268
if
(
IsQuoted
(
readOnlySpan
))
269
{
270
readOnlySpan
=
readOnlySpan
.Slice(1,
readOnlySpan
.Length - 2);
271
}
272
if
(
HttpDateParser
.
TryParse
(
readOnlySpan
,
out
var
result))
273
{
274
return
result;
275
}
276
}
277
return
null
;
278
}
279
280
private
void
SetDate
(
string
parameter
,
DateTimeOffset
?
date
)
281
{
282
NameValueHeaderValue
nameValueHeaderValue
=
NameValueHeaderValue
.
Find
(
_parameters
,
parameter
);
283
if
(!
date
.HasValue)
284
{
285
if
(
nameValueHeaderValue
!=
null
)
286
{
287
_parameters
.
Remove
(
nameValueHeaderValue
);
288
}
289
return
;
290
}
291
string
value
=
"\""
+
HttpDateParser
.
DateToString
(
date
.Value) +
"\""
;
292
if
(
nameValueHeaderValue
!=
null
)
293
{
294
nameValueHeaderValue.Value =
value
;
295
}
296
else
297
{
298
Parameters
.
Add
(
new
NameValueHeaderValue
(
parameter
,
value
));
299
}
300
}
301
302
private
string
GetName
(
string
parameter
)
303
{
304
NameValueHeaderValue
nameValueHeaderValue
=
NameValueHeaderValue
.
Find
(
_parameters
,
parameter
);
305
if
(
nameValueHeaderValue
!=
null
)
306
{
307
string
output
;
308
if
(
parameter
.EndsWith(
'*'
))
309
{
310
if
(
TryDecode5987
(
nameValueHeaderValue
.Value,
out
output
))
311
{
312
return
output
;
313
}
314
return
null
;
315
}
316
if
(
TryDecodeMime
(
nameValueHeaderValue
.Value,
out
output
))
317
{
318
return
output
;
319
}
320
return
nameValueHeaderValue
.Value;
321
}
322
return
null
;
323
}
324
325
private
void
SetName
(
string
parameter
,
string
value
)
326
{
327
NameValueHeaderValue
nameValueHeaderValue
=
NameValueHeaderValue
.
Find
(
_parameters
,
parameter
);
328
if
(
string
.IsNullOrEmpty(
value
))
329
{
330
if
(
nameValueHeaderValue
!=
null
)
331
{
332
_parameters
.
Remove
(
nameValueHeaderValue
);
333
}
334
return
;
335
}
336
string
empty
=
string
.Empty;
337
empty
= ((!
parameter
.EndsWith(
'*'
)) ?
EncodeAndQuoteMime
(
value
) :
HeaderUtilities
.
Encode5987
(
value
));
338
if
(
nameValueHeaderValue
!=
null
)
339
{
340
nameValueHeaderValue.Value =
empty
;
341
}
342
else
343
{
344
Parameters
.
Add
(
new
NameValueHeaderValue
(
parameter
,
empty
));
345
}
346
}
347
348
private
static
string
EncodeAndQuoteMime
(
string
input
)
349
{
350
string
text
=
input
;
351
bool
flag =
false
;
352
if
(
IsQuoted
(
text
))
353
{
354
text
=
text
.Substring(1,
text
.Length - 2);
355
flag =
true
;
356
}
357
if
(
text
.Contains(
'"'
))
358
{
359
throw
new
ArgumentException
(
System
.
SR
.
Format
(
CultureInfo
.
InvariantCulture
,
System
.
SR
.
net_http_headers_invalid_value
,
input
));
360
}
361
if
(
HeaderUtilities
.
ContainsNonAscii
(
text
))
362
{
363
flag =
true
;
364
text
=
EncodeMime
(
text
);
365
}
366
else
if
(!flag &&
HttpRuleParser
.
GetTokenLength
(
text
, 0) !=
text
.Length)
367
{
368
flag =
true
;
369
}
370
if
(flag)
371
{
372
text
=
"\""
+
text
+
"\""
;
373
}
374
return
text
;
375
}
376
377
private
static
bool
IsQuoted
(
ReadOnlySpan<char>
value
)
378
{
379
if
(
value
.Length > 1 &&
value
[0] ==
'"'
)
380
{
381
return
value
[value.Length - 1] ==
'"'
;
382
}
383
return
false
;
384
}
385
386
private
static
string
EncodeMime
(
string
input
)
387
{
388
byte
[]
bytes
=
Encoding
.
UTF8
.GetBytes(
input
);
389
string
text
=
Convert
.
ToBase64String
(
bytes
);
390
return
"=?utf-8?B?"
+
text
+
"?="
;
391
}
392
393
private
static
bool
TryDecodeMime
(
string
input
, [
NotNullWhen
(
true
)]
out
string
output
)
394
{
395
output
=
null
;
396
if
(!
IsQuoted
(
input
) ||
input
.Length < 10)
397
{
398
return
false
;
399
}
400
string
[]
array
=
input
.Split(
'?'
);
401
if
(
array
.Length != 5 ||
array
[0] !=
"\"="
||
array
[4] !=
"=\""
||
array
[2].ToLowerInvariant() !=
"b"
)
402
{
403
return
false
;
404
}
405
try
406
{
407
Encoding
encoding =
Encoding
.
GetEncoding
(
array
[1]);
408
byte
[]
array2
=
Convert
.
FromBase64String
(
array
[3]);
409
output
= encoding.
GetString
(
array2
, 0,
array2
.Length);
410
return
true
;
411
}
412
catch
(
ArgumentException
)
413
{
414
}
415
catch
(
FormatException
)
416
{
417
}
418
return
false
;
419
}
420
421
private
static
bool
TryDecode5987
(
string
input
,
out
string
output
)
422
{
423
output
=
null
;
424
int
num =
input
.IndexOf(
'\''
);
425
if
(num == -1)
426
{
427
return
false
;
428
}
429
int
num2
=
input
.LastIndexOf(
'\''
);
430
if
(num ==
num2
||
input
.IndexOf(
'\''
, num + 1) !=
num2
)
431
{
432
return
false
;
433
}
434
string
name =
input
.Substring(0, num);
435
string
text
=
input
.Substring(
num2
+ 1,
input
.Length - (
num2
+ 1));
436
StringBuilder
stringBuilder
=
new
StringBuilder
();
437
try
438
{
439
Encoding
encoding =
Encoding
.
GetEncoding
(name);
440
byte
[]
array
=
new
byte
[
text
.Length];
441
int
num3
= 0;
442
for
(
int
i = 0; i <
text
.Length; i++)
443
{
444
if
(
Uri
.
IsHexEncoding
(
text
, i))
445
{
446
array
[
num3
++] = (byte)
Uri
.
HexUnescape
(
text
,
ref
i);
447
i--;
448
continue
;
449
}
450
if
(
num3
> 0)
451
{
452
stringBuilder
.Append(encoding.
GetString
(
array
, 0,
num3
));
453
num3
= 0;
454
}
455
stringBuilder
.Append(
text
[i]);
456
}
457
if
(
num3
> 0)
458
{
459
stringBuilder
.Append(encoding.
GetString
(
array
, 0,
num3
));
460
}
461
}
462
catch
(
ArgumentException
)
463
{
464
return
false
;
465
}
466
output
=
stringBuilder
.ToString();
467
return
true
;
468
}
469
}
System.ArgumentException
Definition
ArgumentException.cs:9
System.ArgumentOutOfRangeException
Definition
ArgumentOutOfRangeException.cs:9
System.Collections.Generic.Dictionary.Remove
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
Definition
Dictionary.cs:893
System.Collections.Generic.Dictionary.Add
void Add(TKey key, TValue value)
Definition
Dictionary.cs:873
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Convert.ToBase64String
static string ToBase64String(byte[] inArray)
Definition
Convert.cs:2675
System.Convert.FromBase64String
static unsafe byte[] FromBase64String(string s)
Definition
Convert.cs:2904
System.Convert
Definition
Convert.cs:10
System.FormatException
Definition
FormatException.cs:9
System.Globalization.CultureInfo.InvariantCulture
static CultureInfo InvariantCulture
Definition
CultureInfo.cs:144
System.Globalization.CultureInfo
Definition
CultureInfo.cs:8
System.Net.HttpDateParser.DateToString
static string DateToString(DateTimeOffset dateTime)
Definition
HttpDateParser.cs:24
System.Net.HttpDateParser.TryParse
static bool TryParse(ReadOnlySpan< char > input, out DateTimeOffset result)
Definition
HttpDateParser.cs:14
System.Net.HttpDateParser
Definition
HttpDateParser.cs:6
System.Net.Http.Headers.ContentDispositionHeaderValue.EncodeMime
static string EncodeMime(string input)
Definition
ContentDispositionHeaderValue.cs:386
System.Net.Http.Headers.ContentDispositionHeaderValue.ContentDispositionHeaderValue
ContentDispositionHeaderValue()
Definition
ContentDispositionHeaderValue.cs:141
System.Net.Http.Headers.ContentDispositionHeaderValue.Size
long? Size
Definition
ContentDispositionHeaderValue.cs:102
System.Net.Http.Headers.ContentDispositionHeaderValue.GetDispositionTypeExpressionLength
static int GetDispositionTypeExpressionLength(string input, int startIndex, out string dispositionType)
Definition
ContentDispositionHeaderValue.cs:238
System.Net.Http.Headers.ContentDispositionHeaderValue.SetName
void SetName(string parameter, string value)
Definition
ContentDispositionHeaderValue.cs:325
System.Net.Http.Headers.ContentDispositionHeaderValue.TryDecodeMime
static bool TryDecodeMime(string input, [NotNullWhen(true)] out string output)
Definition
ContentDispositionHeaderValue.cs:393
System.Net.Http.Headers.ContentDispositionHeaderValue.SetDate
void SetDate(string parameter, DateTimeOffset? date)
Definition
ContentDispositionHeaderValue.cs:280
System.Net.Http.Headers.ContentDispositionHeaderValue.Parse
static ContentDispositionHeaderValue Parse(string? input)
Definition
ContentDispositionHeaderValue.cs:188
System.Net.Http.Headers.ContentDispositionHeaderValue.ReadDate
DateTimeOffset? ReadDate
Definition
ContentDispositionHeaderValue.cs:90
System.Net.Http.Headers.ContentDispositionHeaderValue.CreationDate
DateTimeOffset? CreationDate
Definition
ContentDispositionHeaderValue.cs:66
System.Net.Http.Headers.ContentDispositionHeaderValue.DispositionType
string DispositionType
Definition
ContentDispositionHeaderValue.cs:15
System.Net.Http.Headers.ContentDispositionHeaderValue.EncodeAndQuoteMime
static string EncodeAndQuoteMime(string input)
Definition
ContentDispositionHeaderValue.cs:348
System.Net.Http.Headers.ContentDispositionHeaderValue.Parameters
ICollection< NameValueHeaderValue > Parameters
Definition
ContentDispositionHeaderValue.cs:27
System.Net.Http.Headers.ContentDispositionHeaderValue.Equals
override bool Equals([NotNullWhen(true)] object? obj)
Definition
ContentDispositionHeaderValue.cs:165
System.Net.Http.Headers.ContentDispositionHeaderValue.Name
string? Name
Definition
ContentDispositionHeaderValue.cs:30
System.Net.Http.Headers.ContentDispositionHeaderValue.GetDate
DateTimeOffset? GetDate(string parameter)
Definition
ContentDispositionHeaderValue.cs:262
System.Net.Http.Headers.ContentDispositionHeaderValue.GetDispositionTypeLength
static int GetDispositionTypeLength(string input, int startIndex, out object parsedValue)
Definition
ContentDispositionHeaderValue.cs:206
System.Net.Http.Headers.ContentDispositionHeaderValue.GetName
string GetName(string parameter)
Definition
ContentDispositionHeaderValue.cs:302
System.Net.Http.Headers.ContentDispositionHeaderValue.ToString
override string ToString()
Definition
ContentDispositionHeaderValue.cs:157
System.Net.Http.Headers.ContentDispositionHeaderValue._parameters
ObjectCollection< NameValueHeaderValue > _parameters
Definition
ContentDispositionHeaderValue.cs:10
System.Net.Http.Headers.ContentDispositionHeaderValue.CheckDispositionTypeFormat
static void CheckDispositionTypeFormat(string dispositionType, string parameterName)
Definition
ContentDispositionHeaderValue.cs:250
System.Net.Http.Headers.ContentDispositionHeaderValue.ContentDispositionHeaderValue
ContentDispositionHeaderValue(string dispositionType)
Definition
ContentDispositionHeaderValue.cs:151
System.Net.Http.Headers.ContentDispositionHeaderValue.FileName
string? FileName
Definition
ContentDispositionHeaderValue.cs:42
System.Net.Http.Headers.ContentDispositionHeaderValue.ModificationDate
DateTimeOffset? ModificationDate
Definition
ContentDispositionHeaderValue.cs:78
System.Net.Http.Headers.ContentDispositionHeaderValue.ContentDispositionHeaderValue
ContentDispositionHeaderValue(ContentDispositionHeaderValue source)
Definition
ContentDispositionHeaderValue.cs:145
System.Net.Http.Headers.ContentDispositionHeaderValue.TryParse
static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out ContentDispositionHeaderValue? parsedValue)
Definition
ContentDispositionHeaderValue.cs:194
System.Net.Http.Headers.ContentDispositionHeaderValue.IsQuoted
static bool IsQuoted(ReadOnlySpan< char > value)
Definition
ContentDispositionHeaderValue.cs:377
System.Net.Http.Headers.ContentDispositionHeaderValue.FileNameStar
string? FileNameStar
Definition
ContentDispositionHeaderValue.cs:54
System.Net.Http.Headers.ContentDispositionHeaderValue._dispositionType
string _dispositionType
Definition
ContentDispositionHeaderValue.cs:12
System.Net.Http.Headers.ContentDispositionHeaderValue.GetHashCode
override int GetHashCode()
Definition
ContentDispositionHeaderValue.cs:178
System.Net.Http.Headers.ContentDispositionHeaderValue.TryDecode5987
static bool TryDecode5987(string input, out string output)
Definition
ContentDispositionHeaderValue.cs:421
System.Net.Http.Headers.ContentDispositionHeaderValue
Definition
ContentDispositionHeaderValue.cs:9
System.Net.Http.Headers.GenericHeaderParser.ContentDispositionParser
static readonly GenericHeaderParser ContentDispositionParser
Definition
GenericHeaderParser.cs:39
System.Net.Http.Headers.GenericHeaderParser
Definition
GenericHeaderParser.cs:6
System.Net.Http.Headers.HeaderUtilities.ContainsNonAscii
static bool ContainsNonAscii(string input)
Definition
HeaderUtilities.cs:41
System.Net.Http.Headers.HeaderUtilities.Encode5987
static string Encode5987(string input)
Definition
HeaderUtilities.cs:53
System.Net.Http.Headers.HeaderUtilities
Definition
HeaderUtilities.cs:9
System.Net.Http.Headers.NameValueHeaderValue.GetNameValueListLength
static int GetNameValueListLength(string input, int startIndex, char delimiter, ObjectCollection< NameValueHeaderValue > nameValueCollection)
Definition
NameValueHeaderValue.cs:202
System.Net.Http.Headers.NameValueHeaderValue.Find
static NameValueHeaderValue Find(ObjectCollection< NameValueHeaderValue > values, string name)
Definition
NameValueHeaderValue.cs:230
System.Net.Http.Headers.NameValueHeaderValue.GetHashCode
override int GetHashCode()
Definition
NameValueHeaderValue.cs:52
System.Net.Http.Headers.NameValueHeaderValue.ToString
override string ToString()
Definition
NameValueHeaderValue.cs:105
System.Net.Http.Headers.NameValueHeaderValue
Definition
NameValueHeaderValue.cs:8
System.Net.Http.HttpRuleParser.GetTokenLength
static int GetTokenLength(string input, int startIndex)
Definition
HttpRuleParser.cs:47
System.Net.Http.HttpRuleParser.GetWhitespaceLength
static int GetWhitespaceLength(string input, int startIndex)
Definition
HttpRuleParser.cs:92
System.Net.Http.HttpRuleParser
Definition
HttpRuleParser.cs:6
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:118
System.SR.net_http_headers_invalid_value
static string net_http_headers_invalid_value
Definition
SR.cs:26
System.SR.net_http_argument_empty_string
static string net_http_argument_empty_string
Definition
SR.cs:52
System.SR
Definition
SR.cs:7
System.StringComparer.OrdinalIgnoreCase
static StringComparer OrdinalIgnoreCase
Definition
StringComparer.cs:23
System.StringComparer
Definition
StringComparer.cs:12
System.Text.Encoding.UTF8
static Encoding UTF8
Definition
Encoding.cs:526
System.Text.Encoding.GetEncoding
static Encoding GetEncoding(int codepage)
Definition
Encoding.cs:593
System.Text.Encoding.GetString
unsafe string GetString(byte *bytes, int byteCount)
Definition
Encoding.cs:973
System.Text.Encoding
Definition
Encoding.cs:15
System.Text.StringBuilderCache.GetStringAndRelease
static string GetStringAndRelease(StringBuilder sb)
Definition
StringBuilderCache.cs:31
System.Text.StringBuilderCache.Acquire
static StringBuilder Acquire(int capacity=16)
Definition
StringBuilderCache.cs:8
System.Text.StringBuilderCache
Definition
StringBuilderCache.cs:4
System.Text.StringBuilder
Definition
StringBuilder.cs:14
System.Uri.IsHexEncoding
static bool IsHexEncoding(string pattern, int index)
Definition
Uri.cs:1063
System.Uri.HexUnescape
static char HexUnescape(string pattern, ref int index)
Definition
Uri.cs:1045
System.Uri
Definition
Uri.cs:16
System.ICloneable.Clone
object Clone()
System.ICloneable
Definition
ICloneable.cs:4
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Globalization.NumberStyles
NumberStyles
Definition
NumberStyles.cs:5
System.Globalization
Definition
Calendar.cs:1
System.Net.Http.Headers
Definition
AltSvcHeaderParser.cs:4
System.Net.CookieToken.Equals
@ Equals
System.Text
Definition
ConsoleEncoding.cs:1
System.ExceptionArgument.startIndex
@ startIndex
System.ExceptionArgument.text
@ text
System.ExceptionArgument.value
@ value
System.ExceptionArgument.source
@ source
System.ExceptionArgument.bytes
@ bytes
System.ExceptionArgument.index
@ index
System.ExceptionArgument.input
@ input
System.ExceptionArgument.obj
@ obj
System.ExceptionArgument.array
@ array
System.StringComparison
StringComparison
Definition
StringComparison.cs:4
System
Definition
BlockingCollection.cs:8
System.DateTimeOffset
Definition
DateTimeOffset.cs:14
source
System.Net.Http
System.Net.Http.Headers
ContentDispositionHeaderValue.cs
Generated by
1.10.0