Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHTTPClient = &http.Client{Transport: &userAgentTransport{ next: DefaultTransport, userAgent: "oauth2-proxy/" + version.VERSION, }}
View Source
var DefaultTransport = http.DefaultTransport
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface {
WithContext(context.Context) Builder
WithBody(io.Reader) Builder
WithMethod(string) Builder
WithHeaders(http.Header) Builder
SetHeader(key, value string) Builder
Do() Result
}
Builder allows users to construct a request and then execute the request via Do(). Do returns a Result which allows the user to get the body, unmarshal the body into an interface, or into a simplejson.Json.
Click to show internal directories.
Click to hide internal directories.