response

package
v0.0.0-...-dea8691 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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 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
}

Jump to

Keyboard shortcuts

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