httpc

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, param map[string]interface{}, urlEncode bool, args ...interface{}) (body []byte, ok bool)

func GetSSL

func GetSSL(url string, param map[string]interface{}, urlEncode bool, args ...interface{}) (body []byte, ok bool)

func Post

func Post(url, data, contentType string, args ...interface{}) (body []byte, ok bool)

func PostSSL

func PostSSL(url, data, contentType string, args ...interface{}) (body []byte, ok bool)

func Request

func Request(pid *kernel.Pid, method, url string, param ...interface{}) ([]byte, bool)

func SetMaxPoolSize

func SetMaxPoolSize(num int32)

func StartWorker

func StartWorker(father *kernel.Pid) *kernel.Pid

func WithBody

func WithBody(bodyStr string) bodyType

func WithContentType

func WithContentType(contentT string) contentType

func WithHeader

func WithHeader(key, value string) header

func WithSSL

func WithSSL() useSSL

func WithTimeOut

func WithTimeOut(t int32) timeOut

timeout sec,default is 3s

Types

This section is empty.

Jump to

Keyboard shortcuts

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