Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v1.229.0
type Client[Req any, Res any] interface { // Call with request. Call(ctx context.Context, req *Req) (*Res, error) }
Client for HTTP.
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.
func NewContext ¶ added in v1.240.0
NewContext for HTTP.
type Handler ¶ added in v1.218.0
type Handler[Req any, Res any] interface { // Handle the request/response. Handle(ctx Context, req *Req) (*Res, error) }
Handler for HTTP.
type Server ¶ added in v1.164.0
type Server struct {
// contains filtered or unexported fields
}
Server for HTTP.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.