github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/net/http/transfer.go (about) 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package http 6 7 import ( 8 "github.com/shogo82148/std/errors" 9 "github.com/shogo82148/std/net/http/internal" 10 ) 11 12 // ErrLineTooLongは、不正なチャンクエンコーディングでリクエストまたはレスポンスボディを読み取る場合に返されます。 13 var ErrLineTooLong = internal.ErrLineTooLong 14 15 // ErrBodyReadAfterCloseは、ボディが閉じられた後に [Request] または [Response] のボディを読み取る場合に返されます。 16 // これは通常、HTTP [Handler] が [ResponseWriter] のWriteHeaderまたはWriteを呼び出した後にボディが読み取られた場合に発生します。 17 var ErrBodyReadAfterClose = errors.New("http: invalid Read on closed Body")