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: 6 modules, 15 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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