Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitMiddleware ¶
func InitMiddleware(lstRouteTable map[string]*context.HttpRoute, lstMiddleware collections.List[context.IMiddleware])
InitMiddleware 初始化管道
Types ¶
type ApiResponse ¶
type ApiResponse struct {
context.IMiddleware
}
func (*ApiResponse) Invoke ¶
func (receiver *ApiResponse) Invoke(httpContext *context.HttpContext)
type Cors ¶
type Cors struct {
context.IMiddleware
}
func (*Cors) Invoke ¶
func (receiver *Cors) Invoke(httpContext *context.HttpContext)
type Http ¶ added in v0.3.0
type Http struct {
context.IMiddleware
}
Http HTTP报文响应中间件(默认加载)
func (*Http) Invoke ¶ added in v0.3.0
func (receiver *Http) Invoke(httpContext *context.HttpContext)
type UrlRewriting ¶
type UrlRewriting struct {
context.IMiddleware
}
func (*UrlRewriting) Invoke ¶
func (receiver *UrlRewriting) Invoke(httpContext *context.HttpContext)
type Validate ¶ added in v0.9.0
type Validate struct {
context.IMiddleware
}
func (*Validate) Invoke ¶ added in v0.9.0
func (receiver *Validate) Invoke(httpContext *context.HttpContext)
Click to show internal directories.
Click to hide internal directories.