client

package
v0.0.0-...-c6c9c2c Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpResponse

type HttpResponse struct {
	StatusCode int
	Body       string
	Header     http.Header
}

type SecureClient

type SecureClient struct {
	*http.Client

	http.Header
	// contains filtered or unexported fields
}

func NewSecureHttpClient

func NewSecureHttpClient(endpoint string, header http.Header) (*SecureClient, error)

func (*SecureClient) Get

func (s *SecureClient) Get(parameters url.Values) (*HttpResponse, error)

func (*SecureClient) Post

func (s *SecureClient) Post(payload io.Reader) (*HttpResponse, error)

Jump to

Keyboard shortcuts

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