Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 433 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 433 Bytes

harhar

HTTP Archive (HAR) recording for Go code using the http.RoundTripper interface.

Getting Started

For logging from an http.Client you can simply set the Transport property:

	recorder := harhar.NewRecorder(http.DefaultTransport) 
	client := &http.Client{
		Transport: recorder,
	}

Then, whenever you're ready to generate the HAR output, call WriteFile:

recorder.WriteFile("output.har")