79 references to HeaderUtilities
System.Net.Http (79)
System\Net\Http\Headers\AltSvcHeaderParser.cs (1)
401return HeaderUtilities.TryParseInt32(value, startIndex, tokenLength, out result);
System\Net\Http\Headers\AuthenticationHeaderValue.cs (2)
40HeaderUtilities.CheckValidToken(scheme); 244current = HeaderUtilities.GetNextNonEmptyOrWhitespaceIndex(input, current, true, out _);
System\Net\Http\Headers\BaseHeaderParser.cs (2)
45int current = HeaderUtilities.GetNextNonEmptyOrWhitespaceIndex(value, index, SupportsMultipleValues, 70current = HeaderUtilities.GetNextNonEmptyOrWhitespaceIndex(value, current, SupportsMultipleValues,
System\Net\Http\Headers\CacheControlHeaderValue.cs (6)
314HeaderUtilities.AreEqualCollections(_noCacheHeaders, other._noCacheHeaders, StringComparer.OrdinalIgnoreCase) && 315HeaderUtilities.AreEqualCollections(_privateHeaders, other._privateHeaders, StringComparer.OrdinalIgnoreCase) && 316HeaderUtilities.AreEqualCollections(_extensions, other._extensions); 512current = HeaderUtilities.GetNextNonEmptyOrWhitespaceIndex(valueString, current, true, 546if (value is null || !HeaderUtilities.TryParseInt32(value, out int seconds)) 597public override void Validate(string item) => HeaderUtilities.CheckValidToken(item);
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (4)
37HeaderUtilities.CheckValidToken(value); 142HeaderUtilities.CheckValidToken(dispositionType); 169HeaderUtilities.AreEqualCollections(_parameters, other._parameters); 375processedValue = HeaderUtilities.Encode5987(value);
System\Net\Http\Headers\ContentRangeHeaderValue.cs (7)
22HeaderUtilities.CheckValidToken(value); 50_unit = HeaderUtilities.BytesUnit; 60_unit = HeaderUtilities.BytesUnit; 74_unit = HeaderUtilities.BytesUnit; 321if ((fromLength > 0) && !HeaderUtilities.TryParseInt64(input, fromStartIndex, fromLength, out from)) 327if ((toLength > 0) && !HeaderUtilities.TryParseInt64(input, toStartIndex, toLength, out to)) 339if ((lengthLength > 0) && !HeaderUtilities.TryParseInt64(input, lengthStartIndex, lengthLength, out length))
System\Net\Http\Headers\EntityTagHeaderValue.cs (1)
39HeaderUtilities.CheckValidQuotedString(tag);
System\Net\Http\Headers\HttpContentHeaders.cs (2)
99get { return HeaderUtilities.GetDateTimeOffsetValue(KnownHeaders.Expires.Descriptor, this, DateTimeOffset.MinValue); } 105get { return HeaderUtilities.GetDateTimeOffsetValue(KnownHeaders.LastModified.Descriptor, this); }
System\Net\Http\Headers\HttpGeneralHeaders.cs (9)
43if (!_parent.ContainsParsedValue(KnownHeaders.Connection.Descriptor, HeaderUtilities.ConnectionClose)) 45_parent.AddParsedValue(KnownHeaders.Connection.Descriptor, HeaderUtilities.ConnectionClose); 52_parent.RemoveParsedValue(KnownHeaders.Connection.Descriptor, HeaderUtilities.ConnectionClose); 59if (parent.ContainsParsedValue(KnownHeaders.Connection.Descriptor, HeaderUtilities.ConnectionClose)) 72get { return HeaderUtilities.GetDateTimeOffsetValue(KnownHeaders.Date.Descriptor, _parent); } 92if (parent.ContainsParsedValue(KnownHeaders.TransferEncoding.Descriptor, HeaderUtilities.TransferEncodingChunked)) 120if (!_parent.ContainsParsedValue(KnownHeaders.TransferEncoding.Descriptor, HeaderUtilities.TransferEncodingChunked)) 122_parent.AddParsedValue(KnownHeaders.TransferEncoding.Descriptor, HeaderUtilities.TransferEncodingChunked); 129_parent.RemoveParsedValue(KnownHeaders.TransferEncoding.Descriptor, HeaderUtilities.TransferEncodingChunked);
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
191HeaderUtilities.CheckValidToken((string)(object)item, nameof(item));
System\Net\Http\Headers\HttpRequestHeaders.cs (6)
59if (ContainsParsedValue(KnownHeaders.Expect.Descriptor, HeaderUtilities.ExpectContinue)) 75if (!ContainsParsedValue(KnownHeaders.Expect.Descriptor, HeaderUtilities.ExpectContinue)) 77AddParsedValue(KnownHeaders.Expect.Descriptor, HeaderUtilities.ExpectContinue); 84RemoveParsedValue(KnownHeaders.Expect.Descriptor, HeaderUtilities.ExpectContinue); 130get { return HeaderUtilities.GetDateTimeOffsetValue(KnownHeaders.IfModifiedSince.Descriptor, this); } 145get { return HeaderUtilities.GetDateTimeOffsetValue(KnownHeaders.IfUnmodifiedSince.Descriptor, this); }
System\Net\Http\Headers\HttpResponseHeaders.cs (1)
37get { return HeaderUtilities.GetTimeSpanValue(KnownHeaders.Age.Descriptor, this); }
System\Net\Http\Headers\Int32NumberHeaderParser.cs (1)
44if (!HeaderUtilities.TryParseInt32(value, startIndex, numberLength, out result))
System\Net\Http\Headers\Int64NumberHeaderParser.cs (1)
44if (!HeaderUtilities.TryParseInt64(value, startIndex, numberLength, out result))
System\Net\Http\Headers\MediaTypeHeaderValue.cs (1)
133HeaderUtilities.AreEqualCollections(_parameters, other._parameters);
System\Net\Http\Headers\MediaTypeWithQualityHeaderValue.cs (2)
13get => HeaderUtilities.GetQuality((UnvalidatedObjectCollection<NameValueHeaderValue>)Parameters); 14set => HeaderUtilities.SetQuality((UnvalidatedObjectCollection<NameValueHeaderValue>)Parameters, value);
System\Net\Http\Headers\NameValueHeaderValue.cs (1)
348HeaderUtilities.CheckValidToken(name);
System\Net\Http\Headers\NameValueWithParametersHeaderValue.cs (1)
55return HeaderUtilities.AreEqualCollections(_parameters, other._parameters);
System\Net\Http\Headers\ProductHeaderValue.cs (2)
32HeaderUtilities.CheckValidToken(name); 36HeaderUtilities.CheckValidToken(version);
System\Net\Http\Headers\ProductInfoHeaderValue.cs (1)
32HeaderUtilities.CheckValidComment(comment);
System\Net\Http\Headers\RangeHeaderValue.cs (4)
22HeaderUtilities.CheckValidToken(value); 31_unit = HeaderUtilities.BytesUnit; 37_unit = HeaderUtilities.BytesUnit; 94HeaderUtilities.AreEqualCollections(_ranges, other._ranges);
System\Net\Http\Headers\RangeItemHeaderValue.cs (4)
91int current = HeaderUtilities.GetNextNonEmptyOrWhitespaceIndex(input, startIndex, true, out _); 111current = HeaderUtilities.GetNextNonEmptyOrWhitespaceIndex(input, current, true, out bool separatorFound); 189if ((fromLength > 0) && !HeaderUtilities.TryParseInt64(input, fromStartIndex, fromLength, out from)) 196if ((toLength > 0) && !HeaderUtilities.TryParseInt64(input, toStartIndex, toLength, out to))
System\Net\Http\Headers\RetryConditionHeaderValue.cs (1)
118if (!HeaderUtilities.TryParseInt32(input, deltaStartIndex, deltaLength, out deltaSeconds))
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (2)
23HeaderUtilities.CheckValidToken(value); 31HeaderUtilities.CheckValidToken(value);
System\Net\Http\Headers\TimeSpanHeaderParser.cs (1)
38if (!HeaderUtilities.TryParseInt32(value, startIndex, numberLength, out result))
System\Net\Http\Headers\TransferCodingHeaderValue.cs (2)
36HeaderUtilities.CheckValidToken(value); 130HeaderUtilities.AreEqualCollections(_parameters, other._parameters);
System\Net\Http\Headers\TransferCodingWithQualityHeaderValue.cs (2)
13get => HeaderUtilities.GetQuality((UnvalidatedObjectCollection<NameValueHeaderValue>)Parameters); 14set => HeaderUtilities.SetQuality((UnvalidatedObjectCollection<NameValueHeaderValue>)Parameters, value);
System\Net\Http\Headers\ViaHeaderValue.cs (3)
50HeaderUtilities.CheckValidToken(protocolVersion); 55HeaderUtilities.CheckValidToken(protocolName); 61HeaderUtilities.CheckValidComment(comment);
System\Net\Http\Headers\WarningHeaderValue.cs (3)
45HeaderUtilities.CheckValidQuotedString(text); 56HeaderUtilities.CheckValidQuotedString(text); 218if (!HeaderUtilities.TryParseInt32(input, current, codeLength, out code))
System\Net\Http\HttpRequestMessage.cs (1)
166HeaderUtilities.DumpHeaders(sb, _headers, _content?.Headers);
System\Net\Http\HttpResponseMessage.cs (2)
195HeaderUtilities.DumpHeaders(sb, _headers, _content?.Headers); 200HeaderUtilities.DumpHeaders(sb, _trailingHeaders);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (1)
93string usernameStar = HeaderUtilities.Encode5987(credential.UserName);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1344HeaderUtilities.TryParseInt32(nameValue.Value, out int timeout) &&