Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter FastHTTP适配器
func NewAdapter ¶
func (*Adapter) ServeFastHTTP ¶
func (c *Adapter) ServeFastHTTP(ctx *fasthttp.RequestCtx)
ServeFastHTTP 服务HTTP
type RootController ¶
type RootController struct{}
func (*RootController) ClientIP ¶
func (c *RootController) ClientIP(ctx *xray.Context) string
ClientIP 获取客户端IP, 优先从X-Real-IP中获取 get the client IP, preferably from the X-Real-IP
func (*RootController) GetRequest ¶
func (c *RootController) GetRequest(ctx *xray.Context) *fasthttp.Request
GetRequest 获取fasthttp请求
func (*RootController) GetResponseWriter ¶
func (c *RootController) GetResponseWriter(ctx *xray.Context) *fasthttp.Response
GetResponseWriter 获取fasthttp响应写入器
Click to show internal directories.
Click to hide internal directories.