client

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string) *info
func Head(url string) *info

func Post

func Post(url string) *info

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Get

func (h *Client) Get(url string) *info

func (*Client) Head

func (h *Client) Head(url string) *info

func (*Client) Post

func (h *Client) Post(url string) *info

type Progress

type Progress struct {
	// contains filtered or unexported fields
}

func (*Progress) OnProgress

func (p *Progress) OnProgress(fn func(p []byte, current int64, total int64)) *Progress

func (*Progress) Rate

func (p *Progress) Rate(rate float64) *Progress

Rate 0.01 - 100

type Req

type Req struct {
	// contains filtered or unexported fields
}

func (*Req) Bytes

func (r *Req) Bytes() []byte

func (*Req) Code

func (r *Req) Code() int

func (*Req) LastError

func (r *Req) LastError() error

func (*Req) Response

func (r *Req) Response() *http.Response

func (*Req) String

func (r *Req) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL