middleware

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 16 Imported by: 0

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 初始化管道

func InitValidate added in v0.9.0

func InitValidate()

InitValidate 初始化字段验证

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)

Jump to

Keyboard shortcuts

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