http

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2015 License: Apache-2.0 Imports: 9 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseUrl

func ParseUrl(u string) (scheme string, host string, err error)

Types

type HttpClient

type HttpClient struct {
	Location    string
	Protocol    string
	Username    string
	Password    string
	NoVerifySsl bool
}

func NewHttpClient

func NewHttpClient(url string, user string, pw string, noVerifySsl bool) (*HttpClient, error)

func (HttpClient) Delete

func (c HttpClient) Delete(url string) (*HttpRequest, error)

func (HttpClient) Get

func (c HttpClient) Get(url string) (*HttpRequest, error)

func (HttpClient) Post

func (c HttpClient) Post(url string, data []byte) (*HttpRequest, error)

type HttpRequest

type HttpRequest struct {
	Request      *h.Request
	Response     *h.Response
	ResponseText string
	ResponseBody []byte
}

Jump to

Keyboard shortcuts

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