Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &Client{HTTPClient: http.DefaultClient}
DefaultClient is used if no custom HTTP client is defined
Functions ¶
func AddQueryParameters ¶
AddQueryParameters adds query parameters to the URL.
func BuildRequestObject ¶
BuildRequestObject creates the HTTP request object.
Types ¶
type Client ¶
Client allows modification of client headers, redirect policy and other settings See https://golang.org/pkg/net/http
type Request ¶
type Request struct { Method Method BaseURL string // e.g. https://api.service.com Headers map[string]string QueryParams map[string]string Body []byte }
Request holds the request to an API Call.
Click to show internal directories.
Click to hide internal directories.