Documentation ¶
Index ¶
- func MustDelete(url string, payload io.Reader) *http.Request
- func MustDeleteWithContext(ctx context.Context, url string, payload io.Reader) *http.Request
- func MustGet(url string) *http.Request
- func MustGetWithContext(ctx context.Context, url string) *http.Request
- func MustHead(url string) *http.Request
- func MustHeadWithContext(ctx context.Context, url string) *http.Request
- func MustPatch(url string, payload io.Reader) *http.Request
- func MustPatchWithContext(ctx context.Context, url string, payload io.Reader) *http.Request
- func MustPost(url string, payload io.Reader) *http.Request
- func MustPostWithContext(ctx context.Context, url string, payload io.Reader) *http.Request
- func MustPut(url string, payload io.Reader) *http.Request
- func MustPutWithContext(ctx context.Context, url string, payload io.Reader) *http.Request
- func ReadBody(response *http.Response) ([]byte, error)
- func ReadBytes(client *http.Client, request *http.Request) ([]byte, *http.Response, error)
- func ReadString(client *http.Client, request *http.Request) (string, *http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustDeleteWithContext ¶ added in v1.0.4
func MustGetWithContext ¶ added in v1.0.4
func MustHeadWithContext ¶ added in v1.0.4
func MustPatchWithContext ¶ added in v1.0.4
func MustPostWithContext ¶ added in v1.0.4
func MustPutWithContext ¶ added in v1.0.4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.