http

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

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
}

type Client

type Client interface {
	Get(url string, expectedStatusCode int) ([]byte, error)
	Post(url string, expectedStatusCode int, body []byte) ([]byte, error)
}

func NewClient

func NewClient(isSecure bool, basicAuth *BasicAuth, cert string) (Client, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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