Documentation
¶
Index ¶
- func Bytes(resp *http.Response) ([]byte, error)
- func CheckStatus(resp *http.Response) (*http.Response, error)
- func Do(req Request) (*http.Response, error)
- func Get(url string) (*http.Response, error)
- func Json(resp *http.Response) (any, error)
- func Post(data any, url string) (*http.Response, error)
- func SessionDo(s Session, req Request) (*http.Response, error)
- func SessionGet(s Session, url string) (*http.Response, error)
- func SessionPost(s Session, data any, url string) (*http.Response, error)
- func Text(resp *http.Response) (string, error)
- type Request
- func BasicAuth(req Request, username string, password string) Request
- func BearerAuth(req Request, token string) Request
- func Body(req Request, data any) Request
- func FormData(req Request, data map[string]string) Request
- func Header(req Request, name string, value string) Request
- func Method(req Request, method string) Request
- func New(url string) Request
- func Timeout(req Request, durationNs int64) Request
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.