http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XForwardedPort = "X-Forwarded-Port"
	XForwardedHost = "X-Forwarded-Host"
)

constants for headers

View Source
const (
	Name = "http"
)

Variables

View Source
var (
	//ErrRestFaultAbort is a variable of type error
	ErrRestFaultAbort = errors.New("injecting abort")
	//ErrRestFault is a variable of type error
	ErrRestFault = errors.New("injecting abort and delay")
	//ErrNilResponse is a variable of type error
	ErrNilResponse = errors.New("http response is nil")
)

Functions

func HandleIngressTraffic

func HandleIngressTraffic(w http.ResponseWriter, r *http.Request)

HandleIngressTraffic is api gateway http handler

func LocalRequestHandler

func LocalRequestHandler(w http.ResponseWriter, r *http.Request)

LocalRequestHandler is for request from local

func RecordStatus

func RecordStatus(inv *invocation.Invocation, statusCode int)

RecordStatus record an operation status

func RemoteRequestHandler

func RemoteRequestHandler(w http.ResponseWriter, r *http.Request)

RemoteRequestHandler is for request from remote

Types

This section is empty.

Jump to

Keyboard shortcuts

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