expects

package
v0.0.0-...-9d3c944 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyInput

func AnyInput() func(*is.I, *http.Request)

func QueryParamContains

func QueryParamContains(name, value string) func(*is.I, *http.Request)

func QueryParamEquals

func QueryParamEquals(name, value string) func(*is.I, *http.Request)

func RequestBody

func RequestBody(body string) func(*is.I, *http.Request)

func RequestBodyContaining

func RequestBodyContaining(substrings ...string) func(*is.I, *http.Request)

func RequestBodyIsForm

func RequestBodyIsForm(match func(*is.I, url.Values)) func(*is.I, *http.Request)

func RequestBodyOfType

func RequestBodyOfType[T any](match func(*is.I, T)) func(*is.I, *http.Request)

func RequestHeaderContains

func RequestHeaderContains(key, expectation string) func(*is.I, *http.Request)

func RequestMethod

func RequestMethod(method string) func(*is.I, *http.Request)

func RequestPath

func RequestPath(path string) func(*is.I, *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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