Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authorization ¶
func Authorization(auth string) remote.Middleware
Authorization is a sample middleware that adds a HTTP "Authorization" header to every request.
func BasicAuth ¶
func BasicAuth(username, password string) remote.Middleware
BasicAuth sets the value of a HTTP header for basic Authentication
func Debug ¶
func Debug() remote.Middleware
Debug is a sample middleware that adds debugging output to every request.
func Dump ¶ added in v0.11.0
func Dump() remote.Middleware
Dump is a sample middleware that dumps the raw request value
func Opaque ¶
func Opaque(opaqueValue string) remote.Middleware
Opaque modifies the raw URL string before it is sent to the server. This can be useful when the server requires odd characters in the URL string to NOT be urlencoded. (e.g. Such as the REST API for LinkedIn)
Additional documentation can be found at http://golang.org/pkg/net/url/#URL
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.