proxy

package
v0.0.0-...-ef83997 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertHTTPErrorCode

func ConvertHTTPErrorCode(statusCode int, responseBody string) error

ConvertHTTPErrorCode converts an http status code to an instance of type error

func RouteHTTP

func RouteHTTP(ctx jsonapi.InternalServerErrorContext, target string) error

RouteHTTP uses a reverse proxy to route the http request to the scheme, host, and base path provided in target. If the target's path is "/base" and the incoming request was for "/dir", the target request will be for /base/dir.

func RouteHTTPToPath

func RouteHTTPToPath(ctx jsonapi.InternalServerErrorContext, targetHost string, targetPath string) error

RouteHTTPToPath uses a reverse proxy to route the http request to the scheme, host provided in targetHost and path provided in targetPath.

Types

This section is empty.

Jump to

Keyboard shortcuts

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