Documentation
¶
Index ¶
- func BodyBytes(ctx context.Context, response *http.Response) ([]byte, error)
- func Fetch[T interface{}](ctx context.Context, url, method string, payload interface{}, ...) (T, error)
- func FetchData(ctx context.Context, apiURL, method, stage string, headers *http.Header, ...) (string, error)
- func FetchRaw(ctx context.Context, uri, method string, payload interface{}, ...) (*http.Response, error)
- func JsonBody[T interface{}](ctx context.Context, response *http.Response) (T, error)
- func TextBody(ctx context.Context, response *http.Response) (string, error)
- type FetchOptions
- type Proxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
func Fetch[T interface{}](ctx context.Context, url, method string, payload interface{}, options ...FetchOptions) (T, error)
Types ¶
type FetchOptions ¶
Click to show internal directories.
Click to hide internal directories.