httpdump

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ScanBufferSize = 8 * 1024

Variables

This section is empty.

Functions

func Parse

func Parse(dump []byte) (string, http.Header, []byte, error)

Types

type History

type History struct {
	// contains filtered or unexported fields
}

func NewHistory

func NewHistory(size int) *History

func (*History) Do

func (r *History) Do(do func(req Request, res Response))

func (*History) Push

func (r *History) Push(req, res []byte)

func (*History) ServeHTTP

func (h *History) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*History) Wrap

func (h *History) Wrap(next http.Handler) http.Handler

type Request

type Request []byte

func (Request) MarshalJSON

func (r Request) MarshalJSON() ([]byte, error)

type Response

type Response []byte

func (Response) MarshalJSON

func (r Response) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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