middleware

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMiddleware

func InitMiddleware(lstRouteTable collections.List[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 Session

type Session struct {
	context.IMiddleware
}

func (*Session) Invoke

func (receiver *Session) Invoke(httpContext *context.HttpContext)

type UrlRewriting

type UrlRewriting struct {
	context.IMiddleware
}

func (*UrlRewriting) Invoke

func (receiver *UrlRewriting) Invoke(httpContext *context.HttpContext)

Jump to

Keyboard shortcuts

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