Documentation
¶
Index ¶
Constants ¶
View Source
const ( GET = "GET" POST = "POST" PUT = "PUT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func NewDefaultHttpClient ¶
func NewDefaultHttpClient(baseURL string) *HttpClient
func NewInsecureHttpClient ¶
func NewInsecureHttpClient(baseURL string) *HttpClient
func NewSecureHttpClient ¶
func NewSecureHttpClient(baseURL string, certificate []byte) *HttpClient
func (*HttpClient) Do ¶
func (c *HttpClient) Do(method, endpoint string, body io.Reader, modifiers ...RequestModifier) (*http.Response, error)
type RequestError ¶
func (RequestError) Error ¶
func (e RequestError) Error() string
type RequestModifier ¶
func WithApiKey ¶
func WithApiKey(key string) RequestModifier
Click to show internal directories.
Click to hide internal directories.