ingress

package
v0.113.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIngressRoute

func GetIngressRoute(routes []dal.IngressRoute, method string, path string) (*dal.IngressRoute, error)

func ResponseBodyForVerb added in v0.113.0

func ResponseBodyForVerb(sch *schema.Schema, verb *schema.Verb, body []byte, headers map[string][]string) ([]byte, error)

func SetDefaultContentType added in v0.112.0

func SetDefaultContentType(headers map[string][]string)

func ValidateAndExtractRequestBody added in v0.91.0

func ValidateAndExtractRequestBody(route *dal.IngressRoute, r *http.Request, sch *schema.Schema) ([]byte, error)

ValidateAndExtractRequestBody extracts the HttpRequest body from an HTTP request.

func ValidateCallBody added in v0.82.0

func ValidateCallBody(body []byte, verbRef *schema.VerbRef, sch *schema.Schema) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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