Documentation ¶
Index ¶
- func AddBodyClearMutation(clearRouteCache bool) *extproc.BodyResponse
- func AddBodyStringMutation(body string, clearRouteCache bool) *extproc.BodyResponse
- func AddHeaderMutation(add []struct{ ... }, remove []string, clearRouteCache bool, ...) *extproc.HeadersResponse
- func HeaderImmediateResponse(code httpstatus.StatusCode, addHeaders []struct{ ... }, removeHeaders []string, ...) *extproc.ImmediateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBodyClearMutation ¶
func AddBodyClearMutation(clearRouteCache bool) *extproc.BodyResponse
AddBodyClearMutation creates a BodyResponse that clears the body. It allows clearing the route cache.
func AddBodyStringMutation ¶
func AddBodyStringMutation(body string, clearRouteCache bool) *extproc.BodyResponse
AddBodyStringMutation creates a BodyResponse with the given body content. It allows clearing the route cache.
func AddHeaderMutation ¶
func AddHeaderMutation(add []struct{ Key, Value string }, remove []string, clearRouteCache bool, appendAction *base.HeaderValueOption_HeaderAppendAction) *extproc.HeadersResponse
AddHeaderMutation creates a HeadersResponse with the given headers to add and remove. It also allows clearing the route cache and setting an append action for the headers.
func HeaderImmediateResponse ¶
func HeaderImmediateResponse(code httpstatus.StatusCode, addHeaders []struct{ Key, Value string }, removeHeaders []string, appendAction *base.HeaderValueOption_HeaderAppendAction) *extproc.ImmediateResponse
HeaderImmediateResponse creates an ImmediateResponse with the given status code, headers to add, and headers to remove. The headers can be appended if appendAction is provided.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.