response

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

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
	Headers string
	Body    string
}

func NewResponse

func NewResponse(httpRes *http.Response, showStatus, showHeaders, showBody bool) Response

NewResponse creates a new Response object

func (*Response) PrintResponse

func (res *Response) PrintResponse()

PrintResponse prints the response to the console

Jump to

Keyboard shortcuts

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