utils

package
v0.0.0-...-6fb80f9 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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