bmiddle

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BambooMiddleDefaultCors added in v0.1.5

func BambooMiddleDefaultCors(r *ghttp.Request)

BambooMiddleDefaultCors

默认跨域处理

默认跨域处理,用于处理跨域请求的处理,设置默认的跨域请求头信息; 默认的跨域处理,将会放行所有的跨域请求,不做任何的限制处理;

参数

  • r http 信息(*ghttp.Request)

func BambooMiddleHandler

func BambooMiddleHandler(r *ghttp.Request)

BambooMiddleHandler

基本数据返回

基本数据信息返回,用于最终的报错或者数据进行编译打包,打包完成后输出 json 参数信息.

参数

  • r http 信息(*ghttp.Request)

func BambooMiddleRequestCheck added in v0.1.5

func BambooMiddleRequestCheck(r *ghttp.Request)

BambooMiddleRequestCheck

中间件请求处理

中间件请求处理,用于处理请求的中间件;主要用于获取请求中的参数信息;用于测试以及调试;

参数

  • r 请求对象(*ghttp.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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