Registry / testing / gobuffalo-httptest

gobuffalo-httptest

JSON →
library1.5.2gogounverified

Package httptest provides utilities for testing HTTP applications easily.

go get github.com/gobuffalo/httptest
INSTALL
IMPORT
SIG · GOBUFFALO-HTTPTEST
G
gobuffalo-httptest
testinggov1.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

httptest
github.com/gobuffalo/httptest

Creates a test server with a handler.

package main import ( "fmt" "net/http" "github.com/gobuffalo/httptest" ) func main() { handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("ok")) }) ts := httptest.NewServer(handler) defer ts.Close() fmt.Println(ts.URL) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
gobuffalo-httptest — go get gobuffalo-httptest · libregistry