request

package
v0.0.0-...-047dcd9 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kv

type Kv struct {
	Key   string
	Value string
}

type RequestInfo

type RequestInfo struct {
	Host            string
	TlsUsed         bool
	Method          string
	Path            string // URI = Path + QueryArgs
	QueryArgs       string
	Headers         []Kv
	ClientIP        string
	ProxyDetected   bool
	ProxyIP         string
	UserAgentDetect *ghttp.UserAgnetInfo
}

func ParseRequest

func ParseRequest(ctx *fasthttp.RequestCtx) (*RequestInfo, error)

Jump to

Keyboard shortcuts

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