httpclient

package
v0.0.0-...-ca399ba Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	Username string
	Password string
}

BasicAuth holds the basic structure for basic auth

type HTTPClient

type HTTPClient interface {
	Request(request Request) ([]byte, error)
}

HTTPClient defines a HTTPClient

func NewHTTPClient

func NewHTTPClient(skipSslValidation bool) HTTPClient

NewHTTPClient creates and returns a HTTPClient

type Request

type Request struct {
	Verb        string
	Endpoint    string
	APIURL      string
	Body        io.ReadSeeker
	Headers     map[string]string
	Credentials *BasicAuth
	StatusCode  int
}

Request defines a request

Jump to

Keyboard shortcuts

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