Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanlyCloseBody ¶ added in v1.16.56
func CleanlyCloseBody(body io.ReadCloser) error
CleanlyCloseBody drains and closes an HTTP response body to prevent HTTP/2 GOAWAY errors caused by closing bodies with unread data. See: https://github.com/golang/go/issues/46071
Types ¶
type EndpointRequester ¶
type EndpointRequester interface {
SendRequest(ctx context.Context, method string, params interface{}, reply interface{}, options ...Option) error
}
func NewEndpointRequester ¶
func NewEndpointRequester(uri string) EndpointRequester
Click to show internal directories.
Click to hide internal directories.