requests

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, 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 Request

type Request struct {
	*http.Request
	BodyData []byte
}

func NewRequest

func NewRequest(raw *http.Request) *Request

func (*Request) Raw

func (this *Request) Raw() *http.Request

func (*Request) ReadBody

func (this *Request) ReadBody(max int64) (data []byte, err error)

func (*Request) RestoreBody

func (this *Request) RestoreBody(data []byte)

type Response

type Response struct {
	*http.Response

	BodyData []byte
}

func NewResponse

func NewResponse(resp *http.Response) *Response

Jump to

Keyboard shortcuts

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