httpctx

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHTTPReqRes = errors.New("something wrong with HTTP(s) request/response")

Functions

This section is empty.

Types

type HttpContext

type HttpContext interface {
	GetHTTPClient() *http.Client
	GetLastResponse() (*http.Response, error)
	GetLastResponseBody() ([]byte, error)
}

type HttpService

type HttpService struct {
	// contains filtered or unexported fields
}

func New

func (HttpService) GetHTTPClient

func (h HttpService) GetHTTPClient() *http.Client

func (HttpService) GetLastResponse

func (h HttpService) GetLastResponse() (*http.Response, error)

func (HttpService) GetLastResponseBody

func (h HttpService) GetLastResponseBody() ([]byte, error)

Jump to

Keyboard shortcuts

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