Documentation ¶
Index ¶
- func Delete(url string, headers H) ([]byte, error)
- func Download(url, target string, isGzip bool) (string, error)
- func Get(url string, headers H) ([]byte, error)
- func JsonDelete(url string, headers H) ([]byte, error)
- func JsonPatch(url string, query any, headers H) ([]byte, error)
- func JsonPost(url string, query any, headers H) ([]byte, error)
- func JsonPut(url string, query any, headers H) ([]byte, error)
- func Patch(url, query string, headers H) ([]byte, error)
- func Post(url, query string, headers H) ([]byte, error)
- func Put(url, query string, headers H) ([]byte, error)
- func SaveStream(reader io.Reader, target string) (string, error)
- func TextGet(url string, headers H) (string, error)
- func TextPost(url string, query string, headers H) (string, error)
- func TimingGet(url string, headers H, timeout int64) string
- type Client
- type H
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Method string `note:"请求方法 GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|CONNECT|TRACE"` Url string `note:"请求地址"` Data string `note:"请求数据"` Headers map[string]string `note:"请求头"` Timeout time.Duration `note:"超时时间"` }
func (*Client) JsonRequest ¶
func (*Client) TextRequest ¶
Click to show internal directories.
Click to hide internal directories.