Skip to content

Glossary: Software Design Patterns in Go

httptest

Also written: net/http/httptest, httptest.NewRecorder

A standard-library package for testing web handlers without a real network. It lets you send a fake request to a handler and read the recorded response.

Where the book teaches it

Related terms

net/httpHandler