hcutil

package module
v0.0.0-...-1ace20d Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2015 License: MIT Imports: 6 Imported by: 1

README

hcutil

http client utils

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRetryCount    = 8
	DefaultRetryInterval = time.Second * 3
)

Functions

func DoBytes

func DoBytes(client *http.Client, req *http.Request) ([]byte, error)

func GetBytes

func GetBytes(client *http.Client, url string) ([]byte, error)

func GetGoqueryDoc

func GetGoqueryDoc(client *http.Client, url string) (*goquery.Document, error)

func NewClientSocks5

func NewClientSocks5(proxyAddr string) (*http.Client, error)

Types

type Err

type Err struct {
	Pkg  string
	Info string
	Err  error
}

func (*Err) Error

func (e *Err) Error() string

Jump to

Keyboard shortcuts

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