Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertHTTPErrorCode ¶
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.
Click to show internal directories.
Click to hide internal directories.