middleware

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL