Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
Result represents a simplified HTTP response payload.
func Request ¶
func Request( ctx context.Context, client Doer, method string, baseURL string, path string, token string, headers map[string]string, body io.Reader, ) (*Result, error)
Request issues an HTTP request against the provided endpoint. If the provided path is not absolute it is resolved against the base URL. Headers are merged with defaults where the caller provided values take precedence.
Click to show internal directories.
Click to hide internal directories.