Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Headerer
Get(route string, headers ...Header) ([]byte, error, int)
Post(route string, jsonBody []byte, headers ...Header) ([]byte, error, int)
Put(route string, jsonBody []byte, headers ...Header) ([]byte, error, int)
Delete(route string, headers ...Header) ([]byte, error, int)
}
func NewHttpClient ¶
func NewHttpClient(config Config, optionals ...ConfigFunc) Client
NewHttpClient creates a new http client with the given configuration and transport. If transport is nil, the default http client is used.
type ConfigFunc ¶ added in v0.0.3
func WithTransport ¶ added in v0.0.3
func WithTransport(t http.Transport) ConfigFunc
Click to show internal directories.
Click to hide internal directories.