http

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP struct {
	Client      *http.Client
	EnableTLS   *bool
	TLSCA       *string
	TLSCert     *string
	TLSKey      *string
	TLSInsecure *bool
	Request     *HTTPRequest
	Key         *string
}

func (*HTTP) Cleanup

func (d *HTTP) Cleanup() error

func (*HTTP) Init

func (d *HTTP) Init() error

func (*HTTP) LoadEnv

func (d *HTTP) LoadEnv(prefix string) error

func (*HTTP) LoadFlags

func (d *HTTP) LoadFlags() error

func (*HTTP) Push

func (d *HTTP) Push(r io.Reader) error

type HTTPRequest

type HTTPRequest struct {
	Method                string
	URL                   string
	ContentType           string
	SuccessfulStatusCodes []int
	Headers               map[string]string
}

Jump to

Keyboard shortcuts

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