http_util

package
v0.0.0-...-3b54ddd Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildQuery

func BuildQuery(key []string, value []string) string

func BuildQueryWithOutEmptyValue

func BuildQueryWithOutEmptyValue(key []string, value []string) string

func Get

func Get(url string, params util.OrderKV, header map[string]string) (code int, response string, err error)

func GetWithCookie

func GetWithCookie(url string, params util.OrderKV, cookie map[string]string) (code int, response string, err error)

func Post

func Post(url string, params util.OrderKV, header map[string]string) (code int, response string, err error)

func PostByte

func PostByte(url string, post []byte, header map[string]string) (code int, response string, err error)

func PostWithCookie

func PostWithCookie(url string, params util.OrderKV, cookie map[string]string) (code int, response string, err error)

func QueryString2Map

func QueryString2Map(que string) (set map[string]string)

func RawUrlEncode

func RawUrlEncode(origin string) string

like php - rawurlencode rawurlencode and urlencode is different form the ' ' will encode to '%20', is not '+'

Types

This section is empty.

Jump to

Keyboard shortcuts

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