network

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultHTTPClient

func NewDefaultHTTPClient() *herottp.Client

Types

type BasicAuthHTTPClient

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

func NewBasicAuthHTTPClient

func NewBasicAuthHTTPClient(doer Doer, username, password, baseURL string) *BasicAuthHTTPClient

func (*BasicAuthHTTPClient) Get

func (b *BasicAuthHTTPClient) Get(path string, query map[string]string) (*http.Response, error)

func (*BasicAuthHTTPClient) Patch

func (b *BasicAuthHTTPClient) Patch(path string) (*http.Response, error)

type Doer

type Doer interface {
	Do(request *http.Request) (*http.Response, error)
}

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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