response

package
v0.0.0-...-afd21db Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Proto      string
	Status     string
	StatusCode int
	Header     map[string][]string
	Cookies    []*http.Cookie
	Body       string
	// contains filtered or unexported fields
}

Response is response from http

func NewResponse

func NewResponse(resp *http.Response, detail bool) *Response

NewResponse creates a new parsed response

func (*Response) LogResponse

func (r *Response) LogResponse()

LogResponse prints response body

Jump to

Keyboard shortcuts

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