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)
16
public static readonly KnownHeader Accept = new KnownHeader("Accept", HttpHeaderType.
Request
, MediaTypeHeaderParser.MultipleValuesParser, null, H2StaticTable.Accept, H3StaticTable.AcceptAny);
17
public static readonly KnownHeader AcceptCharset = new KnownHeader("Accept-Charset", HttpHeaderType.
Request
, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptCharset);
18
public static readonly KnownHeader AcceptEncoding = new KnownHeader("Accept-Encoding", HttpHeaderType.
Request
, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptEncoding, H3StaticTable.AcceptEncodingGzipDeflateBr);
19
public static readonly KnownHeader AcceptLanguage = new KnownHeader("Accept-Language", HttpHeaderType.
Request
, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptLanguage, H3StaticTable.AcceptLanguage);
31
public static readonly KnownHeader AltUsed = new KnownHeader("Alt-Used", HttpHeaderType.
Request
, parser: null);
32
public static readonly KnownHeader Authorization = new KnownHeader("Authorization", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.SingleValueAuthenticationParser, null, H2StaticTable.Authorization, H3StaticTable.Authorization);
48
public static readonly KnownHeader Expect = new KnownHeader("Expect", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueNameValueWithParametersParser, new string[] { "100-continue" }, H2StaticTable.Expect);
51
public static readonly KnownHeader From = new KnownHeader("From", HttpHeaderType.
Request
, GenericHeaderParser.SingleValueParserWithoutValidation, null, H2StaticTable.From);
55
public static readonly KnownHeader Host = new KnownHeader("Host", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.HostParser, null, H2StaticTable.Host);
56
public static readonly KnownHeader IfMatch = new KnownHeader("If-Match", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueEntityTagParser, null, H2StaticTable.IfMatch);
57
public static readonly KnownHeader IfModifiedSince = new KnownHeader("If-Modified-Since", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.IfModifiedSince, H3StaticTable.IfModifiedSince);
58
public static readonly KnownHeader IfNoneMatch = new KnownHeader("If-None-Match", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueEntityTagParser, null, H2StaticTable.IfNoneMatch, H3StaticTable.IfNoneMatch);
59
public static readonly KnownHeader IfRange = new KnownHeader("If-Range", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.RangeConditionParser, null, H2StaticTable.IfRange, H3StaticTable.IfRange);
60
public static readonly KnownHeader IfUnmodifiedSince = new KnownHeader("If-Unmodified-Since", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.IfUnmodifiedSince);
65
public static readonly KnownHeader MaxForwards = new KnownHeader("Max-Forwards", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, Int32NumberHeaderParser.Parser, null, H2StaticTable.MaxForwards);
70
public static readonly KnownHeader ProxyAuthorization = new KnownHeader("Proxy-Authorization", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.SingleValueAuthenticationParser, null, H2StaticTable.ProxyAuthorization);
74
public static readonly KnownHeader Range = new KnownHeader("Range", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, GenericHeaderParser.RangeParser, null, H2StaticTable.Range, H3StaticTable.RangeBytes0ToAll);
75
public static readonly KnownHeader Referer = new KnownHeader("Referer", HttpHeaderType.
Request
, UriHeaderParser.RelativeOrAbsoluteUriParser, null, H2StaticTable.Referer, H3StaticTable.Referer); // NB: The spelling-mistake "Referer" for "Referrer" must be matched.
89
public static readonly KnownHeader TE = new KnownHeader("TE", HttpHeaderType.
Request
| HttpHeaderType.NonTrailing, TransferCodingHeaderParser.MultipleValueWithQualityParser, new string[] { "trailers", "compress", "deflate", "gzip" });
95
public static readonly KnownHeader UserAgent = new KnownHeader("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)
1094
_response!.Headers.TryAddWithoutValidation(descriptor.HeaderType.HasFlag(HttpHeaderType.
Request
) ? descriptor.AsCustomHeader() : descriptor, headerValue);
1097
_trailingHeaders!.Add((descriptor.HeaderType.HasFlag(HttpHeaderType.
Request
) ? descriptor.AsCustomHeader() : descriptor, headerValue));
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1281
if ((headerType & HttpHeaderType.
Request
) != 0)