Documentation ¶
Index ¶
- func BuildRequestBody(route *dal.IngressRoute, r *http.Request, sch *schema.Schema) ([]byte, error)
- func GetIngressRoute(routes []dal.IngressRoute, method string, path string) (*dal.IngressRoute, error)
- func ResponseForVerb(sch *schema.Schema, verb *schema.Verb, response HTTPResponse) ([]byte, http.Header, error)
- func ValidateCallBody(body []byte, verbRef *schema.VerbRef, sch *schema.Schema) error
- type HTTPResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRequestBody ¶ added in v0.117.0
BuildRequestBody extracts the HttpRequest body from an HTTP request.
func GetIngressRoute ¶
func GetIngressRoute(routes []dal.IngressRoute, method string, path string) (*dal.IngressRoute, error)
Types ¶
type HTTPResponse ¶ added in v0.122.0
type HTTPResponse struct { Status int `json:"status,omitempty"` Headers map[string][]string `json:"headers,omitempty"` Body json.RawMessage `json:"body,omitempty"` Error json.RawMessage `json:"error,omitempty"` }
HTTPResponse mirrors builtins.HttpResponse.
Click to show internal directories.
Click to hide internal directories.