httputils

package
v0.0.0-...-a89e01d Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(url string) error

func Do

func Do(req *http.Request) (resp *http.Response, err error)

func DownloadUrl

func DownloadUrl(fileUrl string) (filename string, content []byte, e error)

func DownloadUrl2File

func DownloadUrl2File(url, fileName string)

func Get

func Get(url string) ([]byte, error)

func GetLocalAddr

func GetLocalAddr() string

获取本机IP

func GetOutNetWorkIp

func GetOutNetWorkIp() string

获取外网IP

func InetAton

func InetAton(ipnr net.IP) uint32

Convert net.IP to int64

func InetNtoa

func InetNtoa(ipnr uint32) net.IP

Convert uint to net.IP

func PostBytes

func PostBytes(url string, body []byte) ([]byte, error)

func PostForm

func PostForm(url string, values url.Values) ([]byte, error)

func PostFormOnly

func PostFormOnly(url string, values url.Values) (*http.Response, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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