Documentation
¶
Index ¶
- Constants
- Variables
- type CallOption
- type Config
- func (c *Config) Build(m ...middleware.Middleware) []ServerOption
- func (c *Config) ErrorEncoder(w http.ResponseWriter, r *http.Request, err error)
- func (c *Config) MethodNotAllowedHandler() nethttp.Handler
- func (c *Config) NotFoundHandler() nethttp.Handler
- func (c *Config) RequestDecoder(r *http.Request, v any) error
- func (c *Config) ResponseEncoder(w http.ResponseWriter, r *http.Request, v any) error
- type Context
- type Server
- type ServerOption
Constants ¶
View Source
const ( NotAcceptableReason = "NOT_ACCEPTABLE" MethodNotAllowedReason = "METHOD_NOT_ALLOWED" NotFoundReason = "NOT_FOUND" CODECReason = "CODEC" )
View Source
const (
SupportPackageIsVersion1 = true
)
Variables ¶
View Source
var ( SetOperation = http.SetOperation NewServer = http.NewServer )
Functions ¶
This section is empty.
Types ¶
type CallOption ¶
type CallOption = http.CallOption
type Config ¶
func (*Config) Build ¶
func (c *Config) Build(m ...middleware.Middleware) []ServerOption
func (*Config) ErrorEncoder ¶
func (*Config) MethodNotAllowedHandler ¶
func (*Config) NotFoundHandler ¶
func (*Config) ResponseEncoder ¶
type ServerOption ¶
type ServerOption = http.ServerOption
Click to show internal directories.
Click to hide internal directories.