context

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Client   *http.Client   `json:"client,omitempty"`
	Request  *http.Request  `json:"request,omitempty"`
	Response *http.Response `json:"response,omitempty"`
}

Context HTTP transactions

func New

func New() *Context

New creates an empty Context

func (*Context) GetClient

func (c *Context) GetClient() *http.Client

GetClient get original http client

func (*Context) GetRequest

func (c *Context) GetRequest() *http.Request

GetRequest get original http request

func (*Context) GetResponse

func (c *Context) GetResponse() *http.Response

GetResponse get original http response

Jump to

Keyboard shortcuts

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