Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
FunctionURI string `json:"function_uri"`
Timeout int `json:"timeout,omitempty"`
SSLVerify *bool `json:"ssl_verify,omitempty"`
Keepalive *bool `json:"keepalive,omitempty"`
KeepaliveTimeout int `json:"keepalive_timeout,omitempty"`
KeepalivePool int `json:"keepalive_pool,omitempty"`
}
type Plugin ¶
type Plugin struct {
base.BasePlugin
Config Config
Processor Processor
Client *http.Client
// contains filtered or unexported fields
}
func (*Plugin) RunRequestPhase ¶
func (p *Plugin) RunRequestPhase(w http.ResponseWriter, r *http.Request) base.RequestPhaseResult
RunRequestPhase owns the external function response. The source is published before the first response byte so the strict request pipeline can classify both successful and failed function calls as upstream responses.
Click to show internal directories.
Click to hide internal directories.