httphi.Handle rejects unsupported protocols

This commit is contained in:
Patricio Whittingslow
2026-07-29 11:47:37 -03:00
parent c97c5e17cf
commit 9ee19b46da
3 changed files with 61 additions and 4 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ import (
const reconfigureWait = 10 * time.Millisecond
var (
errNoRequestProto = errors.New("httphi: request line with no HTTP version")
errNoRequestProto = errors.New("httphi: request line with no HTTP version")
errBadRequestProto = errors.New("httphi: unsupported HTTP version in request line")
errBusyExchanges = errors.New("httphi: exchanges still serving, cannot reuse their buffers")
errRouterTornDown = errors.New("httphi: router torn down, configure it before serving")