Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBytes ¶
func GetBytes(ctx context.Context, client Doer, requestURL string, headers map[string]string, maxSize int64) ([]byte, error)
GetBytes performs a GET request with the supplied headers, requires a success status, and returns the response body. When maxSize is positive the body is rejected once it exceeds maxSize bytes.
Types ¶
Click to show internal directories.
Click to hide internal directories.