Add gRPC standard headers to known headers (#24714)
This commit is contained in:
parent
ff4db3627f
commit
ffeeb034f5
|
|
@ -44,6 +44,11 @@ namespace Microsoft.Net.Http.Headers
|
||||||
public static readonly string Expires = "Expires";
|
public static readonly string Expires = "Expires";
|
||||||
public static readonly string Expect = "Expect";
|
public static readonly string Expect = "Expect";
|
||||||
public static readonly string From = "From";
|
public static readonly string From = "From";
|
||||||
|
public static readonly string GrpcAcceptEncoding = "Grpc-Accept-Encoding";
|
||||||
|
public static readonly string GrpcEncoding = "Grpc-Encoding";
|
||||||
|
public static readonly string GrpcMessage = "Grpc-Message";
|
||||||
|
public static readonly string GrpcStatus = "Grpc-Status";
|
||||||
|
public static readonly string GrpcTimeout = "Grpc-Timeout";
|
||||||
public static readonly string Host = "Host";
|
public static readonly string Host = "Host";
|
||||||
public static readonly string KeepAlive = "Keep-Alive";
|
public static readonly string KeepAlive = "Keep-Alive";
|
||||||
public static readonly string IfMatch = "If-Match";
|
public static readonly string IfMatch = "If-Match";
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -42,6 +42,7 @@ namespace CodeGenerator
|
||||||
"Cache-Control",
|
"Cache-Control",
|
||||||
"Connection",
|
"Connection",
|
||||||
"Date",
|
"Date",
|
||||||
|
"Grpc-Encoding",
|
||||||
"Keep-Alive",
|
"Keep-Alive",
|
||||||
"Pragma",
|
"Pragma",
|
||||||
"Trailer",
|
"Trailer",
|
||||||
|
|
@ -89,6 +90,8 @@ namespace CodeGenerator
|
||||||
"Cookie",
|
"Cookie",
|
||||||
"Expect",
|
"Expect",
|
||||||
"From",
|
"From",
|
||||||
|
"Grpc-Accept-Encoding",
|
||||||
|
"Grpc-Timeout",
|
||||||
"Host",
|
"Host",
|
||||||
"If-Match",
|
"If-Match",
|
||||||
"If-Modified-Since",
|
"If-Modified-Since",
|
||||||
|
|
@ -185,6 +188,8 @@ namespace CodeGenerator
|
||||||
ResponseTrailers = new[]
|
ResponseTrailers = new[]
|
||||||
{
|
{
|
||||||
"ETag",
|
"ETag",
|
||||||
|
"Grpc-Message",
|
||||||
|
"Grpc-Status"
|
||||||
}
|
}
|
||||||
.Select((header, index) => new KnownHeader
|
.Select((header, index) => new KnownHeader
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue