update HTTP/3 Datagram to draft-ietf-masque-h3-datagram-07 (#3355)

This commit is contained in:
Marten Seemann
2022-03-25 09:44:12 +01:00
committed by GitHub
parent d065fb47e1
commit 0d5440a024
3 changed files with 5 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ const (
errorMessageError errorCode = 0x10e
errorConnectError errorCode = 0x10f
errorVersionFallback errorCode = 0x110
errorDatagramError errorCode = 0x4a1268
)
func (e errorCode) String() string {
@@ -64,6 +65,8 @@ func (e errorCode) String() string {
return "H3_CONNECT_ERROR"
case errorVersionFallback:
return "H3_VERSION_FALLBACK"
case errorDatagramError:
return "H3_DATAGRAM_ERROR"
default:
return fmt.Sprintf("unknown error code: %#x", uint16(e))
}