Versions in this module Expand all Collapse all v0 v0.1.2 Jul 30, 2021 Changes in this version + const CLIENT_ERROR_BAD_REQUEST + const CLIENT_ERROR_CONFLICT + const CLIENT_ERROR_EXPECTATION_FAILED + const CLIENT_ERROR_FAILED_DEPENDENCY + const CLIENT_ERROR_FORBIDDEN + const CLIENT_ERROR_GONE + const CLIENT_ERROR_LENGTH_REQUIRED + const CLIENT_ERROR_LOCKED + const CLIENT_ERROR_METHOD_NOT_ALLOWED + const CLIENT_ERROR_NOT_ACCEPTABLE + const CLIENT_ERROR_NOT_FOUND + const CLIENT_ERROR_PAYMENT_REQUIRED + const CLIENT_ERROR_PRECONDITION_FAILED + const CLIENT_ERROR_PROXY_AUTHENTIFICATION_REQUIRED + const CLIENT_ERROR_REQUESTED_RANGE_NOT_SATISFIABLE + const CLIENT_ERROR_REQUEST_ENTITY_TOO_LARGE + const CLIENT_ERROR_REQUEST_TIMEOUT + const CLIENT_ERROR_REQUEST_URI_TOO_LONG + const CLIENT_ERROR_UNAUTHORIZED + const CLIENT_ERROR_UNPROCESSABLE_ENTITY + const CLIENT_ERROR_UNSUPPORTED_MEDIA_TYPE + const INFO_CONTINUE + const INFO_PROCESSING + const INFO_SWITCHING_PROTOCOL + const REDIRECTION_MOVED_PERMANENTLY + const REDIRECTION_MOVED_TEMPORARILY + const REDIRECTION_MULTIPLE_CHOICES + const REDIRECTION_NOT_MODIFIED + const REDIRECTION_SEE_OTHER + const REDIRECTION_TEMPORARY_REDIRECT + const REDIRECTION_USE_PROXY + const SERVER_ERROR_BAD_GATEWAY + const SERVER_ERROR_GATEWAY_TIMEOUT + const SERVER_ERROR_HTTP_VERSION_NOT_SUPPORTED + const SERVER_ERROR_INSUFFICIENT_STORAGE + const SERVER_ERROR_INTERNAL + const SERVER_ERROR_NOT_IMPLEMENTED + const SERVER_ERROR_SERVICE_UNAVAILABLE + const SUCCESS_ACCEPTED + const SUCCESS_CREATED + const SUCCESS_MULTI_STATUS + const SUCCESS_NON_AUTHORITATIVE + const SUCCESS_NO_CONTENT + const SUCCESS_OK + const SUCCESS_PARTIAL_CONTENT + const SUCCESS_RESET_CONTENT + var HTTP_1_0 = Version + var HTTP_1_1 = Version + type Client interface + ReadResponse func() (*Response, error) + WriteRequest func(*Request) error + func NewClient(rw io.ReadWriter) Client + type Header struct + Key string + Value string + type Headers []Header + func (h Headers) Len() int + func (h Headers) Less(i, j int) bool + func (h Headers) Swap(i, j int) + type Message interface + CloseRequested func() bool + ContentLength func() int64 + type Request struct + Body io.Reader + Headers []Header + Method string + Path string + Query []string + func (r *Request) ContentLength() int64 + type Response struct + Body io.Reader + Headers []Header + func (r *Response) CloseRequested() bool + func (r *Response) ContentLength() int64 + func (r *Response) TransferEncoding() string + type Status struct + Code int + Reason string + func (s Status) IsClientError() bool + func (s Status) IsError() bool + func (s Status) IsInformational() bool + func (s Status) IsRedirect() bool + func (s Status) IsServerError() bool + func (s Status) IsSuccess() bool + func (s Status) String() string + type Version struct + func (v *Version) String() string