30 references to Request
System.Net.Http (30)
System\Net\Http\Headers\HttpRequestHeaders.cs (1)
269
: base(HttpHeaderType.General | HttpHeaderType.
Request
| HttpHeaderType.Custom, HttpHeaderType.Response)
System\Net\Http\Headers\HttpResponseHeaders.cs (2)
137
: base(containsTrailingHeaders ? HttpHeaderType.All ^ HttpHeaderType.
Request
: HttpHeaderType.General | HttpHeaderType.Response | HttpHeaderType.Custom,
138
HttpHeaderType.
Request
)
System\Net\Http\Headers\KnownHeaders.cs (20)
17
public static readonly KnownHeader Accept = new("Accept", HttpHeaderType.
Request
, MediaTypeHeaderParser.MultipleValuesParser, null, H2StaticTable.Accept, H3StaticTable.AcceptAny);
18
public static readonly KnownHeader AcceptCharset = new("Accept-Charset", HttpHeaderType.
Request
, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptCharset);
19
public static readonly KnownHeader AcceptEncoding = new("Accept-Encoding", HttpHeaderType.
Request
, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptEncoding, H3StaticTable.AcceptEncodingGzipDeflateBr);
20
public static readonly KnownHeader AcceptLanguage = new("Accept-Language", HttpHeaderType.
Request
, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptLanguage, H3StaticTable.AcceptLanguage);
32
public static readonly KnownHeader AltUsed = new("Alt-Used", HttpHeaderType.
Request
, parser: null);
33
public static readonly KnownHeader Authorization = new("Authorization", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.SingleValueAuthenticationParser, null, H2StaticTable.Authorization, H3StaticTable.Authorization);
50
public static readonly KnownHeader Expect = new("Expect", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueNameValueWithParametersParser, ["100-continue"], H2StaticTable.Expect);
53
public static readonly KnownHeader From = new("From", HttpHeaderType.
Request
, GenericHeaderParser.SingleValueParserWithoutValidation, null, H2StaticTable.From);
57
public static readonly KnownHeader Host = new("Host", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.HostParser, null, H2StaticTable.Host);
58
public static readonly KnownHeader IfMatch = new("If-Match", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueEntityTagParser, null, H2StaticTable.IfMatch);
59
public static readonly KnownHeader IfModifiedSince = new("If-Modified-Since", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.IfModifiedSince, H3StaticTable.IfModifiedSince);
60
public static readonly KnownHeader IfNoneMatch = new("If-None-Match", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueEntityTagParser, null, H2StaticTable.IfNoneMatch, H3StaticTable.IfNoneMatch);
61
public static readonly KnownHeader IfRange = new("If-Range", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.RangeConditionParser, null, H2StaticTable.IfRange, H3StaticTable.IfRange);
62
public static readonly KnownHeader IfUnmodifiedSince = new("If-Unmodified-Since", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.IfUnmodifiedSince);
67
public static readonly KnownHeader MaxForwards = new("Max-Forwards", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, Int32NumberHeaderParser.Parser, null, H2StaticTable.MaxForwards);
72
public static readonly KnownHeader ProxyAuthorization = new("Proxy-Authorization", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.SingleValueAuthenticationParser, null, H2StaticTable.ProxyAuthorization);
76
public static readonly KnownHeader Range = new("Range", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.RangeParser, null, H2StaticTable.Range, H3StaticTable.RangeBytes0ToAll);
77
public static readonly KnownHeader Referer = new("Referer", HttpHeaderType.
Request
, UriHeaderParser.RelativeOrAbsoluteUriParser, null, H2StaticTable.Referer, H3StaticTable.Referer); // NB: The spelling-mistake "Referer" for "Referrer" must be matched.
91
public static readonly KnownHeader TE = new("TE", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, TransferCodingHeaderParser.MultipleValueWithQualityParser, ["trailers", "compress", "deflate", "gzip"]);
98
public static readonly KnownHeader UserAgent = new("User-Agent", HttpHeaderType.
Request
, ProductInfoHeaderParser.MultipleValueParser, null, H2StaticTable.UserAgent, H3StaticTable.UserAgent);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (4)
712
_trailers.TryAddWithoutValidation((descriptor.HeaderType & HttpHeaderType.
Request
) == HttpHeaderType.
Request
? descriptor.AsCustomHeader() : descriptor, headerValue);
724
_response.Headers.TryAddWithoutValidation((descriptor.HeaderType & HttpHeaderType.
Request
) == HttpHeaderType.
Request
? descriptor.AsCustomHeader() : descriptor, headerValue);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (2)
1156
_response!.Headers.TryAddWithoutValidation(descriptor.HeaderType.HasFlag(HttpHeaderType.
Request
) ? descriptor.AsCustomHeader() : descriptor, headerValue);
1159
_trailingHeaders!.Add((descriptor.HeaderType.HasFlag(HttpHeaderType.
Request
) ? descriptor.AsCustomHeader() : descriptor, headerValue));
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1283
if ((headerType & HttpHeaderType.
Request
) != 0)