Documentation
¶
Index ¶
- type Option
- func WithContext(ctx context.Context) Option
- func WithHeader(key, value string) Option
- func WithHeaderMap(headers map[string]string) Option
- func WithHttpMethod(method string) Option
- func WithLocals(key string, value any) Option
- func WithPath(path string) Option
- func WithPathParams(key, value string) Option
- func WithPathParamsMap(params map[string]string) Option
- func WithQuery(key, value string) Option
- func WithQueryMap(query map[string]string) Option
- func WithRequest[Req any](req Req) Option
- type TestHttpContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
func WithContext ¶
func WithHeader ¶
func WithHeaderMap ¶
func WithHttpMethod ¶
func WithLocals ¶
func WithPathParams ¶
func WithPathParamsMap ¶
func WithQueryMap ¶
func WithRequest ¶
type TestHttpContext ¶
type TestHttpContext[Req any, Resp any] struct { lambdahttp.Context[Req, Resp] }
func Run ¶
func Run[Req any, Resp any](handler lambdahttp.Handler[Req, Resp], opts ...Option) (*TestHttpContext[Req, Resp], error)
func (*TestHttpContext[Req, Resp]) ResponseBody ¶
func (t *TestHttpContext[Req, Resp]) ResponseBody() (Resp, error)
Click to show internal directories.
Click to hide internal directories.