- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ErrBodyReadAfterClose (0.34 sec)
-
src/net/http/transfer.go
onHitEOF func() // if non-nil, func to call when EOF is Read } // ErrBodyReadAfterClose is returned when reading a [Request] or [Response] // Body after the body has been closed. This typically happens when the body is // read after an HTTP [Handler] calls WriteHeader or Write on its // [ResponseWriter]. var ErrBodyReadAfterClose = errors.New("http: invalid Read on closed Body")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 22:14:00 UTC 2024 - 31.1K bytes - Viewed (0) -
src/net/http/server.go
readCloser io.ReadCloser closed atomic.Bool sawEOF atomic.Bool } func (ecr *expectContinueReader) Read(p []byte) (n int, err error) { if ecr.closed.Load() { return 0, ErrBodyReadAfterClose } w := ecr.resp if w.canWriteContinue.Load() { w.writeContinueMu.Lock() if w.canWriteContinue.Load() { w.conn.bufw.WriteString("HTTP/1.1 100 Continue\r\n\r\n") w.conn.bufw.Flush()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 123.4K bytes - Viewed (0) -
src/net/http/serve_test.go
// connection immediately. But when it re-uses the connection, it typically closes // the previous request's body, which is not optimal for zero-lengthed bodies, // as the client would then see http.ErrBodyReadAfterClose and not 0, io.EOF. func TestZeroLengthPostAndResponse(t *testing.T) { run(t, testZeroLengthPostAndResponse) } func testZeroLengthPostAndResponse(t *testing.T, mode testMode) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"DefaultServeMux", Var, 0}, {"DefaultTransport", Var, 0}, {"DetectContentType", Func, 0}, {"Dir", Type, 0}, {"ErrAbortHandler", Var, 8}, {"ErrBodyNotAllowed", Var, 0}, {"ErrBodyReadAfterClose", Var, 0}, {"ErrContentLength", Var, 0}, {"ErrHandlerTimeout", Var, 0}, {"ErrHeaderTooLong", Var, 0}, {"ErrHijacked", Var, 0}, {"ErrLineTooLong", Var, 0}, {"ErrMissingBoundary", Var, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.txt
pkg net/http, var DefaultClient *Client pkg net/http, var DefaultServeMux *ServeMux pkg net/http, var DefaultTransport RoundTripper pkg net/http, var ErrBodyNotAllowed error pkg net/http, var ErrBodyReadAfterClose error pkg net/http, var ErrContentLength error pkg net/http, var ErrHandlerTimeout error pkg net/http, var ErrHeaderTooLong *ProtocolError pkg net/http, var ErrHijacked error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)