Documentation ¶ Index ¶ func ErrorResponse(e error) error type Applier type Error type Modifier type Response func New[T any](v T) Response[T] type Writer Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ErrorResponse ¶ func ErrorResponse(e error) error Types ¶ type Applier ¶ type Applier func(m Modifier) type Error ¶ type Error interface { Error() string Unwrap() error content.MediaTypeDescriber status.Describer cookie.Describer metadata.Carrier } type Modifier ¶ type Modifier interface { status.Modifier redirect.Modifier content.MediaTypeModifier content.LengthModifier cookie.Modifier metadata.Modifier } type Response ¶ type Response[T any] interface { Underlying() T content.MediaTypeDescriber status.Describer cookie.Describer metadata.Carrier } func New ¶ func New[T any](v T) Response[T] type Writer ¶ type Writer interface { WriteResponse(context.Context, http.ResponseWriter, request.Request) error } Source Files ¶ View all Source files response.go Click to show internal directories. Click to hide internal directories.