Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete() (*Response, error)
- func (c *Client) Get() (*Response, error)
- func (c *Client) Head() (*Response, error)
- func (c *Client) Options() (*Response, error)
- func (c *Client) Patch(body io.Reader) (*Response, error)
- func (c *Client) Post(body io.Reader) (*Response, error)
- func (c *Client) Put(body io.Reader) (*Response, error)
- func (c *Client) Trace() (*Response, error)
- func (c *Client) UploadByPatch(stream io.ReadCloser) (*Response, error)
- func (c *Client) UploadByPost(stream io.ReadCloser) (*Response, error)
- func (c *Client) UploadByPut(stream io.ReadCloser) (*Response, error)
- type Header
- type Response
- func (r *Response) Binary() []byte
- func (r *Response) Body() string
- func (r *Response) Close() bool
- func (r *Response) ContentLength() int64
- func (r *Response) GetHeader() *Header
- func (r *Response) IsStatus100() bool
- func (r *Response) IsStatus100s() bool
- func (r *Response) IsStatus101() bool
- func (r *Response) IsStatus102() bool
- func (r *Response) IsStatus103() bool
- func (r *Response) IsStatus200() bool
- func (r *Response) IsStatus200s() bool
- func (r *Response) IsStatus201() bool
- func (r *Response) IsStatus202() bool
- func (r *Response) IsStatus203() bool
- func (r *Response) IsStatus204() bool
- func (r *Response) IsStatus205() bool
- func (r *Response) IsStatus206() bool
- func (r *Response) IsStatus207() bool
- func (r *Response) IsStatus208() bool
- func (r *Response) IsStatus226() bool
- func (r *Response) IsStatus300() bool
- func (r *Response) IsStatus300s() bool
- func (r *Response) IsStatus301() bool
- func (r *Response) IsStatus302() bool
- func (r *Response) IsStatus303() bool
- func (r *Response) IsStatus304() bool
- func (r *Response) IsStatus305() bool
- func (r *Response) IsStatus307() bool
- func (r *Response) IsStatus308() bool
- func (r *Response) IsStatus400() bool
- func (r *Response) IsStatus400s() bool
- func (r *Response) IsStatus401() bool
- func (r *Response) IsStatus402() bool
- func (r *Response) IsStatus403() bool
- func (r *Response) IsStatus404() bool
- func (r *Response) IsStatus405() bool
- func (r *Response) IsStatus406() bool
- func (r *Response) IsStatus407() bool
- func (r *Response) IsStatus408() bool
- func (r *Response) IsStatus409() bool
- func (r *Response) IsStatus410() bool
- func (r *Response) IsStatus411() bool
- func (r *Response) IsStatus412() bool
- func (r *Response) IsStatus413() bool
- func (r *Response) IsStatus414() bool
- func (r *Response) IsStatus415() bool
- func (r *Response) IsStatus416() bool
- func (r *Response) IsStatus417() bool
- func (r *Response) IsStatus418() bool
- func (r *Response) IsStatus421() bool
- func (r *Response) IsStatus422() bool
- func (r *Response) IsStatus423() bool
- func (r *Response) IsStatus424() bool
- func (r *Response) IsStatus425() bool
- func (r *Response) IsStatus426() bool
- func (r *Response) IsStatus428() bool
- func (r *Response) IsStatus429() bool
- func (r *Response) IsStatus431() bool
- func (r *Response) IsStatus451() bool
- func (r *Response) IsStatus500() bool
- func (r *Response) IsStatus500s() bool
- func (r *Response) IsStatus501() bool
- func (r *Response) IsStatus502() bool
- func (r *Response) IsStatus503() bool
- func (r *Response) IsStatus504() bool
- func (r *Response) IsStatus505() bool
- func (r *Response) IsStatus506() bool
- func (r *Response) IsStatus507() bool
- func (r *Response) IsStatus508() bool
- func (r *Response) IsStatus510() bool
- func (r *Response) IsStatus511() bool
- func (r *Response) Proto() string
- func (r *Response) ProtoMajor() int
- func (r *Response) ProtoMinor() int
- func (r *Response) StatusCode() int
- func (r *Response) Uncompressed() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
ChunkSize int
Header http.Header
Context context.Context
// contains filtered or unexported fields
}
Client is a HTTP client structure in Annette package
func (*Client) UploadByPatch ¶
func (c *Client) UploadByPatch(stream io.ReadCloser) (*Response, error)
func (*Client) UploadByPost ¶
func (c *Client) UploadByPost(stream io.ReadCloser) (*Response, error)
func (*Client) UploadByPut ¶
func (c *Client) UploadByPut(stream io.ReadCloser) (*Response, error)
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) ContentLength ¶
func (*Response) IsStatus100 ¶
func (*Response) IsStatus100s ¶
func (*Response) IsStatus101 ¶
func (*Response) IsStatus102 ¶
func (*Response) IsStatus103 ¶
func (*Response) IsStatus200 ¶
func (*Response) IsStatus200s ¶
func (*Response) IsStatus201 ¶
func (*Response) IsStatus202 ¶
func (*Response) IsStatus203 ¶
func (*Response) IsStatus204 ¶
func (*Response) IsStatus205 ¶
func (*Response) IsStatus206 ¶
func (*Response) IsStatus207 ¶
func (*Response) IsStatus208 ¶
func (*Response) IsStatus226 ¶
func (*Response) IsStatus300 ¶
func (*Response) IsStatus300s ¶
func (*Response) IsStatus301 ¶
func (*Response) IsStatus302 ¶
func (*Response) IsStatus303 ¶
func (*Response) IsStatus304 ¶
func (*Response) IsStatus305 ¶
func (*Response) IsStatus307 ¶
func (*Response) IsStatus308 ¶
func (*Response) IsStatus400 ¶
func (*Response) IsStatus400s ¶
func (*Response) IsStatus401 ¶
func (*Response) IsStatus402 ¶
func (*Response) IsStatus403 ¶
func (*Response) IsStatus404 ¶
func (*Response) IsStatus405 ¶
func (*Response) IsStatus406 ¶
func (*Response) IsStatus407 ¶
func (*Response) IsStatus408 ¶
func (*Response) IsStatus409 ¶
func (*Response) IsStatus410 ¶
func (*Response) IsStatus411 ¶
func (*Response) IsStatus412 ¶
func (*Response) IsStatus413 ¶
func (*Response) IsStatus414 ¶
func (*Response) IsStatus415 ¶
func (*Response) IsStatus416 ¶
func (*Response) IsStatus417 ¶
func (*Response) IsStatus418 ¶
func (*Response) IsStatus421 ¶
func (*Response) IsStatus422 ¶
func (*Response) IsStatus423 ¶
func (*Response) IsStatus424 ¶
func (*Response) IsStatus425 ¶
func (*Response) IsStatus426 ¶
func (*Response) IsStatus428 ¶
func (*Response) IsStatus429 ¶
func (*Response) IsStatus431 ¶
func (*Response) IsStatus451 ¶
func (*Response) IsStatus500 ¶
func (*Response) IsStatus500s ¶
func (*Response) IsStatus501 ¶
func (*Response) IsStatus502 ¶
func (*Response) IsStatus503 ¶
func (*Response) IsStatus504 ¶
func (*Response) IsStatus505 ¶
func (*Response) IsStatus506 ¶
func (*Response) IsStatus507 ¶
func (*Response) IsStatus508 ¶
func (*Response) IsStatus510 ¶
func (*Response) IsStatus511 ¶
func (*Response) ProtoMajor ¶
func (*Response) ProtoMinor ¶
func (*Response) StatusCode ¶
func (*Response) Uncompressed ¶
Click to show internal directories.
Click to hide internal directories.