xhttp

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFormValues

func GetFormValues(r *http.Request) (map[string]interface{}, error)

GetFormValues returns the form values.

func GetRemoteAddr

func GetRemoteAddr(r *http.Request) string

GetRemoteAddr returns the peer address, supports X-Forward-For.

func GetRequestIP

func GetRequestIP(r *http.Request) string

Types

type XResponse

type XResponse struct {
	Code       int32  `json:"code"`
	Msg        string `json:"msg"`
	Data       any    `json:"data,omitempty"`
	ServerTime int64  `json:"serverTime"`
}

Jump to

Keyboard shortcuts

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