Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = http.DefaultClient
DefaultClient holds a default HTTP client
The client can be customised per-request by passing one in as the argument to Call
View Source
var DefaultForwardHeaders = []string{
"X-Forwarded-For", "X-Forwarded-Proto",
"X-Forwarded-Host", "X-Request-Id",
}
DefaultForwardHeaders is a slice of default header names which are forwarded from the incoming request.
Forwarded headers can be customised per-request using Requester.ForwardHeaders
Functions ¶
Types ¶
type Requester ¶
type Requester interface { ForwardHeaders(...string) Requester Delete(string) Resulter Get(string) Resulter Head(string) Resulter Options(string) Resulter Patch(string) Resulter Post(string) Resulter Put(string) Resulter Trace(string) Resulter }
Requester ...
type Resulter ¶
type Resulter interface { Do() (*http.Response, error) Result(dest interface{}) (*http.Response, []byte, error) Stream(delim byte, c chan StreamResulter) (*http.Response, error) }
Resulter ...
Click to show internal directories.
Click to hide internal directories.