Documentation ¶
Index ¶
- func Delete(url string, payload io.Reader) *http.Request
- func Do(client *http.Client, request *http.Request) (*http.Response, error)
- func DoAndHandleResponse[T any](client *http.Client, request *http.Request, ...) T
- func DoAndReadByte(client *http.Client, request *http.Request) ([]byte, *http.Response, error)
- func DoAndReadString(client *http.Client, request *http.Request) (string, *http.Response, error)
- func Get(url string) *http.Request
- func ParseProxy(proxyUrl string) (*url.URL, error)
- func Patch(url string, payload io.Reader) *http.Request
- func Post(url string, payload io.Reader) *http.Request
- func Put(url string, payload io.Reader) *http.Request
- func ReadResponseBody(response *http.Response) ([]byte, error)
- func SetHeaders(request *http.Request, headerMaps ...map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoAndHandleResponse ¶
func DoAndReadByte ¶
func DoAndReadString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.