{"id":53488,"library":"gobuffalo-httptest","title":"HTTP Test","description":"Package httptest provides utilities for testing HTTP applications easily.","status":"active","version":"1.5.2","language":"go","source_language":null,"source_url":"https://github.com/gobuffalo/httptest","tags":["testing","http","test","server"],"install":[{"cmd":"go get github.com/gobuffalo/httptest","lang":"bash","label":"Install github.com/gobuffalo/httptest"}],"dependencies":[],"imports":[{"symbol":"httptest","correct":"github.com/gobuffalo/httptest"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"github.com/gobuffalo/httptest\"\n)\n\nfunc main() {\n\thandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tw.Write([]byte(\"ok\"))\n\t})\n\tts := httptest.NewServer(handler)\n\tdefer ts.Close()\n\tfmt.Println(ts.URL)\n}","lang":"go","description":"Creates a test server with a handler."},"warnings":[],"env_vars":null,"search_vec":"'applic':10 'easili':11 'http':1,9,13 'httptest':4 'packag':3 'provid':5 'server':15 'test':2,8,12,14 'util':6","created_at":"2026-06-15T07:41:28.575195+00:00","updated_at":"2026-06-15T07:41:28.575195+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/gobuffalo/httptest","github":"https://github.com/gobuffalo/httptest","docs":"https://pkg.go.dev/github.com/gobuffalo/httptest#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}