Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ContentType is the key for the Content-Type header ContentType = "Content-Type" // ApplicationJSON is the value for the Content-Type header for JSON ApplicationJSON = "application/json" )
Variables ¶
View Source
var ( // JSContentTypeHeader is the http.Header for the "application/json" content type JSContentTypeHeader = http.Header(map[string][]string{ContentType: []string{ApplicationJSON}}) )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Do(method string, headers http.Header, body io.Reader, path ...string) (*http.Response, error)
}
Client is a REST client that makes requests to a given path. Implementations will prefix the path with a base URL that is specified when the client implementation is created
func NewRealTLSClient ¶
NewRealTLSClient creates a new Client that uses a TLS connection to make requests to baseURL
Click to show internal directories.
Click to hide internal directories.