Documentation
¶
Overview ¶
Package network retrieves resources for the Growse browser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResponseTooLarge = errors.New("response body is too large")
ErrResponseTooLarge is returned when a response exceeds the configured body-size limit.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a size-limited HTTP resource loader.
func NewClientWithLimits ¶
NewClientWithLimits creates a client with explicit dependencies and limits. It is primarily useful for tests and alternative transports.
type StatusError ¶
StatusError reports a non-successful HTTP response.
func (*StatusError) Error ¶
func (e *StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.