@@ -19,22 +19,22 @@ internal static class HttpCharacters
1919 // 127.0.0.1
2020212122- private static readonly IndexOfAnyValues < byte > _allowedAuthorityBytes = IndexOfAnyValues . Create ( ":.-[]@0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"u8 ) ;
22+ private static readonly SearchValues < byte > _allowedAuthorityBytes = SearchValues . Create ( ":.-[]@0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"u8 ) ;
2323
2424 // Matches Http.Sys
2525 // Matches RFC 3986 except "*" / "+" / "," / ";" / "=" and "%" HEXDIG HEXDIG which are not allowed by Http.Sys
26- private static readonly IndexOfAnyValues < char > _allowedHostChars = IndexOfAnyValues . Create ( "!$&'()-._~" + AlphaNumeric ) ;
26+ private static readonly SearchValues < char > _allowedHostChars = SearchValues . Create ( "!$&'()-._~" + AlphaNumeric ) ;
2727
2828 // tchar https://tools.ietf.org/html/rfc7230#appendix-B
29- private static readonly IndexOfAnyValues < char > _allowedTokenChars = IndexOfAnyValues . Create ( "!#$%&'*+-.^_`|~" + AlphaNumeric ) ;
30- private static readonly IndexOfAnyValues < byte > _allowedTokenBytes = IndexOfAnyValues . Create ( "!#$%&'*+-.^_`|~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"u8 ) ;
29+ private static readonly SearchValues < char > _allowedTokenChars = SearchValues . Create ( "!#$%&'*+-.^_`|~" + AlphaNumeric ) ;
30+ private static readonly SearchValues < byte > _allowedTokenBytes = SearchValues . Create ( "!#$%&'*+-.^_`|~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"u8 ) ;
3131
3232 // field-value https://tools.ietf.org/html/rfc7230#section-3.2
3333 // HTAB, [VCHAR, SP]
34- private static readonly IndexOfAnyValues < char > _allowedFieldChars = IndexOfAnyValues . Create ( "\t !\" #$%&'()*+,-./:;<=>?@[\\ ]^_`{|}~" + AlphaNumeric ) ;
34+ private static readonly SearchValues < char > _allowedFieldChars = SearchValues . Create ( "\t !\" #$%&'()*+,-./:;<=>?@[\\ ]^_`{|}~" + AlphaNumeric ) ;
3535
3636 // Values are [0x00, 0x1F] without 0x09 (HTAB) and with 0x7F.
37- private static readonly IndexOfAnyValues < char > _invalidFieldChars = IndexOfAnyValues . Create (
37+ private static readonly SearchValues < char > _invalidFieldChars = SearchValues . Create (
3838 "\u0000 \u0001 \u0002 \u0003 \u0004 \u0005 \u0006 \u0007 \u0008 \u000A \u000B \u000C \u000D \u000E \u000F \u0010 " +
3939 "\u0011 \u0012 \u0013 \u0014 \u0015 \u0016 \u0017 \u0018 \u0019 \u001A \u001B \u001C \u001D \u001E \u001F \u007F " ) ;
4040
0 commit comments