bhook

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BambooHookDefaultCors

func BambooHookDefaultCors(r *ghttp.Request)

BambooHookDefaultCors 为请求启用默认的跨域配置并继续执行中间件链。

func BambooHookRequestInfo

func BambooHookRequestInfo(r *ghttp.Request)

BambooHookRequestInfo 记录并解析 HTTP 请求的详细信息,包括请求方法、路径、参数、头部等内容,并统计请求耗时。

该钩子函数在请求处理之前被调用,用于记录并解析 HTTP 请求的详细信息,包括请求方法、路径、参数、头部等内容,并统计请求耗时。

参数:

  • r:ghttp.Request 对象,表示当前 HTTP 请求。

返回值:无

Types

This section is empty.

Jump to

Keyboard shortcuts

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