utils

package
v0.0.0-...-20e2382 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2015 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestClient

type RestClient struct {
	Headers map[string]string
	// contains filtered or unexported fields
}

func NewRestClient

func NewRestClient() *RestClient

func (*RestClient) Client

func (c *RestClient) Client() *http.Client

func (*RestClient) Get

func (c *RestClient) Get(url string) error

func (*RestClient) GetWithBytes

func (c *RestClient) GetWithBytes(url string, byteData []byte) error

func (*RestClient) LastResponseBody

func (c *RestClient) LastResponseBody() []byte

func (*RestClient) LastResponseStatus

func (c *RestClient) LastResponseStatus() int

func (*RestClient) Post

func (c *RestClient) Post(url string, data io.Reader) error

func (*RestClient) PostJson

func (c *RestClient) PostJson(url string, data interface{}) error

func (*RestClient) PostString

func (c *RestClient) PostString(url string, data string) error

func (*RestClient) Put

func (c *RestClient) Put(url string, data io.Reader) error

func (*RestClient) PutJson

func (c *RestClient) PutJson(url string, data interface{}) error

func (*RestClient) PutString

func (c *RestClient) PutString(url string, data string) error

Jump to

Keyboard shortcuts

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