har

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder struct {
	http.RoundTripper
	// contains filtered or unexported fields
}

func NewRecorder

func NewRecorder() *Recorder

NewRecorder returns a new Recorder object that fulfills the http.RoundTripper interface

func (*Recorder) Export

func (r *Recorder) Export() *martianhar.HAR

Export returns the in-memory log.

func (*Recorder) RoundTrip

func (r *Recorder) RoundTrip(req *http.Request) (*http.Response, error)

type Replayer

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

func NewReplayerFromFile

func NewReplayerFromFile(path string) (*Replayer, error)

func (*Replayer) RoundTrip

func (r *Replayer) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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