Versions in this module Expand all Collapse all v3 v3.0.0 Sep 29, 2024 Changes in this version + var ErrInvalidHeaders = errors.New("invalid headers") + var ErrInvalidStatusCode = errors.New("invalid status code") + var ErrInvalidStatusLine = errors.New("invalid status line") + var ErrUnreadableBody = errors.New("unreadable body") + type Response struct + Body []byte + Code int + Headers map[string][]string + Proto string + Status string + Time time.Duration + func FromJSON(data []byte) (Response, error) + func ParseResponse(b []byte) (*Response, error) + func (r Response) Bytes() []byte + func (r Response) BytesOnlyHeaders() []byte + func (r Response) BytesWithoutHeaders() []byte + func (r Response) ContentLength() int + func (r Response) ContentType() string + func (r Response) EscapedBytes() []byte + func (r Response) InferredType() string + func (r Response) IsEmpty() bool + func (r Response) Length() int + func (r Response) Location() string + func (r Response) ToJSON() ([]byte, error)