Versions in this module Expand all Collapse all v0 v0.5.3 Dec 8, 2023 v0.5.2 Nov 26, 2023 Changes in this version + func Handle[T, E any](fn Function[T, E]) http.Handler + type BodyBuilder struct + func (b BodyBuilder[R]) Body(body R) BodyBuilder[R] + func (b BodyBuilder[R]) ContentType(contentType string) BodyBuilder[R] + func (b BodyBuilder[R]) Header(headerName string, headerValues ...string) BodyBuilder[R] + func (b BodyBuilder[R]) Headers(headers http.Header) BodyBuilder[R] + type Context struct + func (c *Context[T, E]) Accepted() BodyBuilder[E] + func (c *Context[T, E]) BadRequest() BodyBuilder[E] + func (c *Context[T, E]) Created(location string) BodyBuilder[E] + func (c *Context[T, E]) Deadline() (time.Time, bool) + func (c *Context[T, E]) Done() <-chan struct{} + func (c *Context[T, E]) Err() error + func (c *Context[T, E]) Get() (e E) + func (c *Context[T, E]) InternalServerError() BodyBuilder[E] + func (c *Context[T, E]) Method() string + func (c *Context[T, E]) NoContent() HeadersBuilder + func (c *Context[T, E]) NotFound() HeadersBuilder + func (c *Context[T, E]) Ok() BodyBuilder[E] + func (c *Context[T, E]) Path() string + func (c *Context[T, E]) Status(status int) BodyBuilder[E] + func (c *Context[T, E]) Value(key any) any + type Function func(ctx *Context[T, E]) error + type HeadersBuilder struct + func (b HeadersBuilder) Header(headerName string, headerValues ...string) HeadersBuilder + func (b HeadersBuilder) Headers(headers http.Header) HeadersBuilder + type ResponseEntity struct + func (re ResponseEntity) Body() any + func (re ResponseEntity) HasBody() bool + func (re ResponseEntity) Headers() http.Header + func (re ResponseEntity) Status() int + type ResponseEntityHandler struct + func (eh *ResponseEntityHandler) HandleReturnValue(ctx http.Context, returnValue any) error + func (eh *ResponseEntityHandler) SupportsReturnType(returnType reflect.Type) bool