Skip to content

Commit d96a100

Browse files
Adding WebTransport Handshake to Kestrel (#41877)
1 parent 69cec6c commit d96a100

File tree

15 files changed

+1264
-831
lines changed

15 files changed

+1264
-831
lines changed

src/Http/Headers/src/HeaderNames.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ public static class HeaderNames
189189
/// <summary>Gets the <c>Pragma</c> HTTP header name.</summary>
190190
public static readonly string Pragma = "Pragma";
191191

192+
/// <summary>Gets the <c>Protocol</c> HTTP header name.</summary>
193+
public static readonly string Protocol = ":protocol";
194+
192195
/// <summary>Gets the <c>Proxy-Authenticate</c> HTTP header name.</summary>
193196
public static readonly string ProxyAuthenticate = "Proxy-Authenticate";
194197

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
#nullable enable
2+
static readonly Microsoft.Net.Http.Headers.HeaderNames.Protocol -> string!

src/Servers/Kestrel/Core/src/CoreStrings.resx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,4 +668,13 @@ For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?l
668668
<data name="Http3ControlStreamErrorInitializingOutbound" xml:space="preserve">
669669
<value>Error initializing outbound control stream.</value>
670670
</data>
671-
</root>
671+
<data name="Http3DatagramStatusMismatch" xml:space="preserve">
672+
<value>HTTP/3 datagrams negotiation mismatch. Currently client has it '{clientStatus}' and server has it '{serverStatus}'</value>
673+
</data>
674+
<data name="Http3MethodMustBeConnectWhenUsingProtocolPseudoHeader" xml:space="preserve">
675+
<value>Method must be CONNECT when using the :protocol pseudo-header.</value>
676+
</data>
677+
<data name="Http3MissingAuthorityOrPathPseudoHeaders" xml:space="preserve">
678+
<value>The :authority and/or :path pseudo-headers are missing.</value>
679+
</data>
680+
</root>

0 commit comments

Comments
 (0)