Documentation ¶
Index ¶
- Constants
- Variables
- func IsTextContentType(res es_response.Response) bool
- func New(ctx es_context.Context, res *http.Response) es_response.Response
- func NewNoResponse(err error) es_response.Response
- func NewTransportErrorHttpResponse(err error, res *http.Response) es_response.Response
- func NewTransportErrorResponse(err error, res es_response.Response) es_response.Response
- func Read(ctx es_context.Context, resBody io.ReadCloser) (es_response.Body, error)
Constants ¶
View Source
const ( ReadBufferSize = 10 * 1048576 // 10MiB ReadChunkSize = 64 * 1024 // 64KiB )
Variables ¶
View Source
var (
ErrorInvalidBufferState = errors.New("invalid buffer state")
)
Functions ¶
func IsTextContentType ¶
func IsTextContentType(res es_response.Response) bool
func New ¶
func New(ctx es_context.Context, res *http.Response) es_response.Response
func NewNoResponse ¶
func NewNoResponse(err error) es_response.Response
func NewTransportErrorHttpResponse ¶
func NewTransportErrorHttpResponse(err error, res *http.Response) es_response.Response
func NewTransportErrorResponse ¶
func NewTransportErrorResponse(err error, res es_response.Response) es_response.Response
func Read ¶
func Read(ctx es_context.Context, resBody io.ReadCloser) (es_response.Body, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.