barista.run: barista.run/testing/httpserver Index | Files

package httpserver

import "barista.run/testing/httpserver"

Package httpserver provides a test http server that can serve some canned responses, e.g. modification time header, infinite redirect loop, various http status codes, and templated responses using query params.

Index

Package Files

httpserver.go

func New Uses

func New() *httptest.Server

New creates a new test server with some pre-configured special routes.

Package httpserver imports 11 packages (graph). Updated 2018-10-03. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).