moved Read/Send code to http.Connection

This commit is contained in:
Altair-sh
2026-11-04 03:32:36 +01:00
parent 59f7d873be
commit 0ecbb629ea
10 changed files with 297 additions and 274 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ func NewHttpError(code StatusCode, msg string) *HttpError {
}
var ErrHasUnreadBody = NewHttpError(StatusRequestEntityTooLarge,
"can't read new request, body of previous request wasn't read")
"server didn't fully read request body, connection corrupted")
var ErrBodyHasBeenAlreadyRead = errors.New(
"request body has already been read")