shttp

package
v0.0.0-...-659f766 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIp

func GetIp(r *http.Request) string

获取请求的IP地址

func GetIps

func GetIps(r *http.Request) string

获取请求的原始IP地址

func IsValidIp

func IsValidIp(ip string) bool

判断是否是合法IP

func PickIp

func PickIp(ips string) string

解析ip地址

func PostJson

func PostJson(url, jsonRequest string, timeOut time.Duration) (*http.Response, error)

发送application/json请求

Types

This section is empty.

Jump to

Keyboard shortcuts

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