ingress

package
v0.103.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 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 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

type HTTPRequest added in v0.91.0

type HTTPRequest struct {
	Method         string              `json:"method"`
	Path           string              `json:"path"`
	PathParameters map[string]string   `json:"pathParameters"`
	Query          map[string][]string `json:"query"`
	Headers        map[string][]string `json:"headers"`
	Body           []byte              `json:"body"`
}

Jump to

Keyboard shortcuts

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