Documentation ¶ Overview ¶ Package httpmem provides an in-memory HTTP server and client, for testing Index ¶ func ServerAndClient(h http.Handler) (*http.Server, *http.Client) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ServerAndClient ¶ func ServerAndClient(h http.Handler) (*http.Server, *http.Client) ServerAndClient creates an in-memory HTTP server, and a client which will connect to it. The server is ready to accept requests. The server should be closed to clean up associated resources. Types ¶ This section is empty. Source Files ¶ View all Source files httpmem.go Click to show internal directories. Click to hide internal directories.