client

package
v0.0.0-...-82e7740 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 9 Imported by: 0

README

web-client GoDoc

http client library for Go

Installation

go get gopkg.in/goyy/goyy.v0/web/client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetPriority

func SetPriority(value int)

SetPriority set the priority of the logger.

Types

type Client

type Client struct {
	URL         string
	Params      url.Values
	PostBody    string
	Referer     string
	Header      http.Header
	Cookies     []*http.Cookie
	Transport   http.RoundTripper
	Timeout     int64
	OnTimeout   func()
	OnError     func(error)
	OnCompleted func(*result.Client)
}

Client client.Client.

func (*Client) DoGet

func (me *Client) DoGet()

DoGet execute the get request.

func (*Client) DoPost

func (me *Client) DoPost()

DoPost execute the post request.

func (*Client) GoGet

func (me *Client) GoGet()

GoGet thread to execute the get request.

func (*Client) GoPost

func (me *Client) GoPost()

GoPost thread to execute the post request.

func (*Client) QueueGet

func (me *Client) QueueGet()

QueueGet Queue to execute the get request.

func (*Client) QueuePost

func (me *Client) QueuePost()

QueuePost Queue to execute the post request.

Jump to

Keyboard shortcuts

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