dump

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: 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 Dump

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

func New

func New(ed EncoderDecoder) *Dump

func (*Dump) Decode

func (d *Dump) Decode(buf []byte) (*http.Response, error)

func (*Dump) Encode

func (d *Dump) Encode(res *http.Response) ([]byte, error)

type EncoderDecoder

type EncoderDecoder interface {
	Encode(*Response) ([]byte, error)
	Decode([]byte) (*Response, error)
}

type Response

type Response struct {
	Header           http.Header
	Body             string
	Status           string
	StatusCode       int
	ProtoMajor       int
	ProtoMinor       int
	ContentLength    int64
	TransferEncoding []string
	Uncompressed     bool
	Trailer          http.Header
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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