rest

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpStatusCode

type HttpStatusCode int

type Requester

type Requester interface {
	Get(url string, headers map[string]string) ([]byte, HttpStatusCode, error)
	Post(url string, headers map[string]string, body io.Reader) ([]byte, HttpStatusCode, error)
}

type RestClient

type RestClient struct{}

func (*RestClient) Get

func (h *RestClient) Get(url string, headers map[string]string) ([]byte, HttpStatusCode, error)

func (*RestClient) Post

func (h *RestClient) Post(url string, headers map[string]string, body io.Reader) ([]byte, HttpStatusCode, error)

Jump to

Keyboard shortcuts

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