Documentation ¶
Index ¶
- Constants
- func GetJSON(ctx context.Context, url string, options ...Option) ([]byte, error)
- func PostForm(ctx context.Context, url string, form url.Values, options ...Option) ([]byte, error)
- func PostJSON(ctx context.Context, url string, data json.RawMessage, options ...Option) ([]byte, error)
- type Option
Constants ¶
View Source
const ( // ContentTypeJSON json format ContentTypeJSON = "application/json; charset=utf-8" // ContentTypeForm form format ContentTypeForm = "application/x-www-form-urlencoded; charset=utf-8" // DefaultTimeout max exec time for a request DefaultTimeout = 3 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.