Documentation ¶
Index ¶
- func KeepAlive(keepalive time.Duration)
- func Proxy(url string)
- func Timeout(timeout time.Duration)
- func Transport() *http.Transport
- type Client
- 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
- type FormData
- type Json
- type OctetStream
- type Progress
- type Protobuf
- type Raw
- type 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
- type URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OctetStream ¶
type OctetStream struct {
// contains filtered or unexported fields
}
func (*OctetStream) Abort ¶
func (p *OctetStream) Abort()
func (*OctetStream) Send ¶
func (p *OctetStream) Send() *Response
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
func (*Progress) OnProgress ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) OctetStream ¶
func (h *Request) OctetStream(body io.Reader) *OctetStream
func (*Request) SetBasicAuth ¶
Click to show internal directories.
Click to hide internal directories.