http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoWithFullPath

func DoWithFullPath(method, path string, body io.Reader, timeoutSecond int) (*http.Response, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(address, port string, connectTimeout, handshakeTimeout, requestTimeout int) (*Client, error)

func (*Client) Do

func (c *Client) Do(method, path string, body io.Reader) (*http.Response, error)

func (*Client) DoWithFullPath

func (c *Client) DoWithFullPath(method, path string, body io.Reader) (*http.Response, error)

func (*Client) SetTargetAddress

func (c *Client) SetTargetAddress(addr, port string)

Jump to

Keyboard shortcuts

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