Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Context ¶ added in v1.225.0
type Context interface { // Request of the context. Request() *http.Request // Response of the context. Response() http.ResponseWriter context.Context }
Context for HTTP.
type Handler ¶ added in v1.218.0
type Handler[Req any, Res any] interface { // Handle func for request/response. Handle(ctx Context, req *Req) (*Res, error) // Error for this handler. Error(ctx Context, err error) *Res // Status code from error. Status(err error) int }
Handler for HTTP.
type Server ¶ added in v1.164.0
type Server struct {
// contains filtered or unexported fields
}
Server for HTTP.
Click to show internal directories.
Click to hide internal directories.