httpdump

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cookie struct {
	Name     string
	Value    string
	Domain   string
	Path     string
	HttpOnly bool
	Secure   bool
	Expires  time.Time
}

type Request

type Request struct {
	Method   string
	URL      string
	Header   http.Header
	Host     string
	PostForm url.Values
	Cookies  []Cookie
	Response Response
}

func MakeRequest

func MakeRequest(req *http.Request) Request

type Response

type Response struct {
	Status int
	Header http.Header
	Body   []byte
}

func Do

func Do(req Request, timeout time.Duration) (Response, error)

func MakeResponse

func MakeResponse(req Request, resp *http.Response) Response

Jump to

Keyboard shortcuts

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