parse_http

package
v0.0.0-...-8c797e3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0, 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 FormContent

type FormContent struct {
	URL          string            `json:"url"`
	ParseTime    string            `json:"parse_time,omitempty"`
	Method       string            `json:"method,omitempty"`
	RemoteAddr   string            `json:"remote_addr,omitempty"`
	Host         string            `json:"host,omitempty"`
	Proto        string            `json:"proto,omitempty"`
	ProtoMajor   int               `json:"proto_major,omitempty"`
	ProtoMinor   int               `json:"proto_minor,omitempty"`
	Param        string            `json:"param,omitempty"`
	Referer      string            `json:"referer,omitempty"`
	Headers      map[string]string `json:"headers,omitempty"`
	PostFormData map[string]string `json:"postData,omitempty"`
	QueryStrings map[string]string `json:"queryString,omitempty"`
}

func FormPost

func FormPost(c *gin.Context) (FormContent, error)

func FormPostParam

func FormPostParam(c *gin.Context, paramKey string) (FormContent, error)

FormPostParam will remove HEADER Authorization

type HeaderContent

type HeaderContent struct {
	ParseTime  string            `json:"parse_time,omitempty"`
	URL        string            `json:"url"`
	Method     string            `json:"method,omitempty"`
	RemoteAddr string            `json:"remote_addr,omitempty"`
	Host       string            `json:"host,omitempty"`
	Proto      string            `json:"proto,omitempty"`
	ProtoMajor int               `json:"proto_major,omitempty"`
	ProtoMinor int               `json:"proto_minor,omitempty"`
	Param      string            `json:"param,omitempty"`
	Referer    string            `json:"referer,omitempty"`
	Headers    map[string]string `json:"headers,omitempty"`
	Header     string            `json:"header,omitempty"`
}

func HttpHeader

func HttpHeader(c *gin.Context) (HeaderContent, error)

func HttpHeaderItem

func HttpHeaderItem(c *gin.Context, headKey string) (HeaderContent, error)

type QueryContent

type QueryContent struct {
	ParseTime    string            `json:"parse_time,omitempty"`
	URL          string            `json:"url"`
	Method       string            `json:"method,omitempty"`
	RemoteAddr   string            `json:"remote_addr,omitempty"`
	Host         string            `json:"host,omitempty"`
	Proto        string            `json:"proto,omitempty"`
	ProtoMajor   int               `json:"proto_major,omitempty"`
	ProtoMinor   int               `json:"proto_minor,omitempty"`
	Param        string            `json:"param,omitempty"`
	Referer      string            `json:"referer,omitempty"`
	Headers      map[string]string `json:"headers,omitempty"`
	QueryStrings map[string]string `json:"queryString,omitempty"`
}

func HttpQuery

func HttpQuery(c *gin.Context) (QueryContent, error)

func HttpQueryParam

func HttpQueryParam(c *gin.Context, paramKey string) (QueryContent, error)

Jump to

Keyboard shortcuts

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