Versions in this module Expand all Collapse all v1 v1.0.0 Oct 31, 2023 Changes in this version + func KeepAlive(keepalive time.Duration) + func Proxy(url string) + func Timeout(timeout time.Duration) + func Transport() *http.Transport + type Client struct + func (h *Client) Connect(url string) *Request + func (h *Client) Delete(url string) *Request + func (h *Client) Get(url string) *Request + func (h *Client) Head(url string) *Request + func (h *Client) Options(url string) *Request + func (h *Client) Patch(url string) *Request + func (h *Client) Post(url string) *Request + func (h *Client) Put(url string) *Request + func (h *Client) Trace(url string) *Request + type Form struct + func (p *Form) Abort() + func (p *Form) Do() (*http.Response, error) + func (p *Form) Send() *Response + type FormData struct + func (p *FormData) Abort() + func (p *FormData) Do() (*http.Response, error) + func (p *FormData) Send() *Response + type Json struct + func (p *Json) Abort() + func (p *Json) Do() (*http.Response, error) + func (p *Json) Send() *Response + type OctetStream struct + func (p *OctetStream) Abort() + func (p *OctetStream) Do() (*http.Response, error) + func (p *OctetStream) Send() *Response + type Progress struct + func (p *Progress) OnProgress(fn func(p []byte, current int64, total int64)) *Progress + func (p *Progress) Rate(rate float64) *Progress + type Protobuf struct + func (p *Protobuf) Abort() + func (p *Protobuf) Do() (*http.Response, error) + func (p *Protobuf) Send() *Response + type Raw struct + func (p *Raw) Abort() + func (p *Raw) Do() (*http.Response, error) + func (p *Raw) Send() *Response + type Request struct + func Delete(url string) *Request + func Get(url string) *Request + func Head(url string) *Request + func Options(url string) *Request + func Patch(url string) *Request + func Post(url string) *Request + func Put(url string) *Request + func Trace(url string) *Request + func (h *Request) AddCookie(cookie *http.Cookie) *Request + func (h *Request) AddHeader(key string, value string) *Request + func (h *Request) Form(body ...kitty.M) *Form + func (h *Request) Json(body ...any) *Json + func (h *Request) Multipart(body ...kitty.M) *FormData + func (h *Request) OctetStream(body io.Reader) *OctetStream + func (h *Request) Progress(progress *Progress) *Request + func (h *Request) Protobuf(body ...proto.Message) *Protobuf + func (h *Request) Query(body ...kitty.M) *URL + func (h *Request) Raw(body io.Reader) *Raw + func (h *Request) SetBasicAuth(userName, passWord string) *Request + func (h *Request) SetCookies(cookies []*http.Cookie) *Request + func (h *Request) SetHeader(key string, value string) *Request + func (h *Request) SetHeaders(headers map[string]string) *Request + func (h *Request) Timeout(timeout time.Duration) *Request + type Response struct + func (r *Response) Bytes() []byte + func (r *Response) Code() int + func (r *Response) Error() error + func (r *Response) Response() *http.Response + func (r *Response) String() string + type URL struct + func (p *URL) Abort() + func (p *URL) Do() (*http.Response, error) + func (p *URL) Send() *Response