78 references to HttpRuleParser
Microsoft.Net.Http.Headers (78)
CacheControlHeaderValue.cs (1)
742
var tokenLength =
HttpRuleParser
.GetTokenLength(valueString, current);
ContentDispositionHeaderValue.cs (4)
294
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
323
var typeLength =
HttpRuleParser
.GetTokenLength(input, startIndex);
364
if (
HttpRuleParser
.TryStringToDate(dateString, out date))
483
else if (!needsQuotes &&
HttpRuleParser
.GetTokenLength(result, 0) != result.Length)
ContentRangeHeaderValue.cs (13)
239
var unitLength =
HttpRuleParser
.GetTokenLength(input, startIndex);
248
var separatorLength =
HttpRuleParser
.GetWhitespaceLength(input, current);
276
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
310
lengthLength =
HttpRuleParser
.GetNumberLength(input, current, false);
312
if ((lengthLength == 0) || (lengthLength >
HttpRuleParser
.MaxInt64Digits))
320
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
339
fromLength =
HttpRuleParser
.GetNumberLength(input, current, false);
341
if ((fromLength == 0) || (fromLength >
HttpRuleParser
.MaxInt64Digits))
347
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
357
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
366
toLength =
HttpRuleParser
.GetNumberLength(input, current, false);
368
if ((toLength == 0) || (toLength >
HttpRuleParser
.MaxInt64Digits))
376
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
CookieHeaderValue.cs (1)
172
if (
HttpRuleParser
.GetTokenLength(name, 0) != name.Length)
EntityTagHeaderValue.cs (4)
60
else if ((
HttpRuleParser
.GetQuotedStringLength(tag, 0, out var length) != HttpParseResult.Parsed) ||
245
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
249
if (
HttpRuleParser
.GetQuotedStringLength(input, current, out var tagLength) != HttpParseResult.Parsed)
271
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
HeaderUtilities.cs (14)
78
if (
HttpRuleParser
.GetTokenLength(value, 0) != value.Length)
159
var current = startIndex +
HttpRuleParser
.GetWhitespaceLength(input, startIndex);
170
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
177
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
187
current +=
HttpRuleParser
.GetWhitespaceLength(headerValue, current);
206
current +=
HttpRuleParser
.GetWhitespaceLength(headerValue, current);
245
var current =
HttpRuleParser
.GetWhitespaceLength(segment, 0);
251
var tokenLength =
HttpRuleParser
.GetTokenLength(headerValues[i], current);
301
var current =
HttpRuleParser
.GetWhitespaceLength(segment, 0);
307
var tokenLength =
HttpRuleParser
.GetTokenLength(segment, current);
332
startIndex +=
HttpRuleParser
.GetWhitespaceLength(headerValue, startIndex);
343
startIndex +=
HttpRuleParser
.GetWhitespaceLength(headerValue, startIndex);
346
if (TryParseNonNegativeInt64(new StringSegment(headerValue, startIndex,
HttpRuleParser
.GetNumberLength(headerValue, startIndex, false)), out result))
551
return
HttpRuleParser
.TryStringToDate(input, out result);
MediaTypeHeaderValue.cs (5)
580
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
612
var typeLength =
HttpRuleParser
.GetTokenLength(input, startIndex);
620
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
628
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
631
var subtypeLength =
HttpRuleParser
.GetTokenLength(input, current);
NameValueHeaderValue.cs (10)
349
var nameLength =
HttpRuleParser
.GetTokenLength(input, startIndex);
358
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
366
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current); // skip whitespaces
371
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
382
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current); // skip whitespaces
401
var current = startIndex +
HttpRuleParser
.GetWhitespaceLength(input, startIndex);
414
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
424
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
461
var valueLength =
HttpRuleParser
.GetTokenLength(input, startIndex);
466
if (
HttpRuleParser
.GetQuotedStringLength(input, startIndex, out valueLength) != HttpParseResult.Parsed)
RangeConditionHeaderValue.cs (1)
177
if (!
HttpRuleParser
.TryStringToDate(input.Subsegment(current), out date))
RangeHeaderValue.cs (3)
164
var unitLength =
HttpRuleParser
.GetTokenLength(input, startIndex);
174
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
182
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
RangeItemHeaderValue.cs (7)
172
var fromLength =
HttpRuleParser
.GetNumberLength(input, current, false);
174
if (fromLength >
HttpRuleParser
.MaxInt64Digits)
180
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
190
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
198
toLength =
HttpRuleParser
.GetNumberLength(input, current, false);
200
if (toLength >
HttpRuleParser
.MaxInt64Digits)
206
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
SetCookieHeaderValue.cs (5)
492
var itemLength =
HttpRuleParser
.GetTokenLength(input, offset);
525
offset +=
HttpRuleParser
.GetWhitespaceLength(input, offset);
528
itemLength =
HttpRuleParser
.GetTokenLength(input, offset);
548
if (!
HttpRuleParser
.TryStringToDate(dateString, out expirationDate))
571
itemLength =
HttpRuleParser
.GetNumberLength(input, offset, allowDecimal: false);
src\Http\Shared\CookieHeaderParserShared.cs (4)
113
var current = startIndex +
HttpRuleParser
.GetWhitespaceLength(input, startIndex);
124
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
132
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
157
var itemLength =
HttpRuleParser
.GetTokenLength(input, offset);
StringWithQualityHeaderValue.cs (6)
197
var valueLength =
HttpRuleParser
.GetTokenLength(input, startIndex);
207
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
216
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
239
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
248
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);
263
current = current +
HttpRuleParser
.GetWhitespaceLength(input, current);