110 references to
Microsoft.AspNetCore.Http (17)
src\Http\Shared\CookieHeaderParserShared.cs (7)
115
if ((current == input.Length) || (input
[
current] != ',' && input
[
current] != ';'))
129
while ((current < input.Length) && ((input
[
current] == ',') || (input
[
current] == ';')))
195
if (input
[
offset] == '"')
213
if (offset == input.Length || input
[
offset] != '"')
233
if (offset >= input.Length || input
[
offset] != '=')
src\Shared\HttpRuleParser.cs (10)
82
c = input
[
current];
93
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
95
var spaceOrTab = input
[
current + 2];
128
if (input
[
current] == '.')
135
c = input
[
current];
168
if (input
[
startIndex] != '\\')
175
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
224
if (input
[
startIndex] != openChar)
245
if (supportsNesting && (input
[
current] == openChar))
287
if (input
[
current] == closeChar)
Microsoft.AspNetCore.Http.Abstractions (3)
HostString.cs (3)
238
if (port
[
i] < '0' || '9' < port
[
i])
356
if (index + 2 < value.Length && value
[
index + 1] == ':')
Microsoft.AspNetCore.Mvc.Core (10)
src\Shared\HttpRuleParser.cs (10)
82
c = input
[
current];
93
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
95
var spaceOrTab = input
[
current + 2];
128
if (input
[
current] == '.')
135
c = input
[
current];
168
if (input
[
startIndex] != '\\')
175
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
224
if (input
[
startIndex] != openChar)
245
if (supportsNesting && (input
[
current] == openChar))
287
if (input
[
current] == closeChar)
Microsoft.AspNetCore.Routing (10)
src\Shared\HttpRuleParser.cs (10)
82
c = input
[
current];
93
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
95
var spaceOrTab = input
[
current + 2];
128
if (input
[
current] == '.')
135
c = input
[
current];
168
if (input
[
startIndex] != '\\')
175
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
224
if (input
[
startIndex] != openChar)
245
if (supportsNesting && (input
[
current] == openChar))
287
if (input
[
current] == closeChar)
Microsoft.Net.Http.Headers (70)
CacheControlHeaderValue.cs (1)
723
if ((valueString.Length < 3) || (valueString[0] != '\"') || (valueString
[
valueString.Length - 1] != '\"'))
ContentDispositionHeaderValue.cs (10)
299
if ((current < input.Length) && (input
[
current] == ';'))
511
var c = result
[
i];
738
decoded.Append(dataString
[
index]); // Normal safe character
770
if ((pattern
[
index] == '%') && IsEscapedAscii(pattern
[
index + 1], pattern
[
index + 2]))
802
if ((pattern
[
index] == '%')
805
var ret = UnEscapeAscii(pattern
[
index + 1], pattern
[
index + 2]);
809
return (byte)pattern
[
index++];
ContentRangeHeaderValue.cs (4)
270
if ((current == input.Length) || (input
[
current] != '/'))
303
if (input
[
current] == '*')
332
if (input
[
current] == '*')
350
if ((current == input.Length) || (input
[
current] != '-'))
EntityTagHeaderValue.cs (2)
225
var firstChar = input
[
startIndex];
239
if ((current + 2 >= input.Length) || (input
[
current] != '/'))
HeaderUtilities.cs (20)
161
if ((current == input.Length) || (input
[
current] != ','))
174
while ((current < input.Length) && (input
[
current] == ','))
425
var ch = input
[
current];
442
ch = input
[
current];
456
ch = input
[
current];
605
return !StringSegment.IsNullOrEmpty(input) && input.Length >= 2 && input[0] == '"' && input
[
input.Length - 1] == '"';
633
if ((uint)nextIndex < (uint)segment.Length && segment
[
i] == '\\')
641
span[spanIndex] = segment
[
nextIndex];
646
span[spanIndex] = segment
[
i];
659
if (i < input.Length - 1 && input
[
i] == '\\')
667
if (input
[
i + 1] == '\\')
704
if (segment
[
i] == '\\' || segment
[
i] == '\"')
708
else if ((segment
[
i] <= 0x1F || segment
[
i] == 0x7F) && segment
[
i] != 0x09)
712
throw new FormatException($"Invalid control character '{segment
[
i]}' in input.");
714
span[spanIndex++] = segment
[
i];
724
if (input
[
i] == '\\' || input
[
i] == '\"')
MediaTypeHeaderValue.cs (2)
584
if ((current < input.Length) && (input
[
current] == ';'))
623
if ((current >= input.Length) || (input
[
current] != '/'))
NameValueHeaderValue.cs (2)
361
if ((current == input.Length) || (input
[
current] != '='))
416
if ((current == input.Length) || (input
[
current] != delimiter))
RangeConditionHeaderValue.cs (2)
153
var firstChar = input
[
current];
154
var secondChar = input
[
current + 1];
RangeHeaderValue.cs (1)
176
if ((current == input.Length) || (input
[
current] != '='))
RangeItemHeaderValue.cs (1)
183
if ((current == input.Length) || (input
[
current] != '-'))
SetCookieHeaderValue.cs (4)
513
if (input
[
offset] == ',')
518
if (input
[
offset] != ';')
565
if (input
[
offset] == '-')
673
if (offset >= input.Length || input
[
offset] != '=')
src\Http\Shared\CookieHeaderParserShared.cs (7)
115
if ((current == input.Length) || (input
[
current] != ',' && input
[
current] != ';'))
129
while ((current < input.Length) && ((input
[
current] == ',') || (input
[
current] == ';')))
195
if (input
[
offset] == '"')
213
if (offset == input.Length || input
[
offset] != '"')
233
if (offset >= input.Length || input
[
offset] != '=')
src\Shared\HttpRuleParser.cs (10)
82
c = input
[
current];
93
if ((current + 2 < input.Length) && (input
[
current + 1] == LF))
95
var spaceOrTab = input
[
current + 2];
128
if (input
[
current] == '.')
135
c = input
[
current];
168
if (input
[
startIndex] != '\\')
175
if ((startIndex + 2 > input.Length) || (input
[
startIndex + 1] > 127))
224
if (input
[
startIndex] != openChar)
245
if (supportsNesting && (input
[
current] == openChar))
287
if (input
[
current] == closeChar)
StringWithQualityHeaderValue.cs (4)
209
if ((current == input.Length) || (input
[
current] != ';'))
233
if ((current == input.Length) || ((input
[
current] != 'q') && (input
[
current] != 'Q')))
242
if ((current == input.Length) || (input
[
current] != '='))