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 ¶ added in v1.7.0
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.
Click to show internal directories.
Click to hide internal directories.