{"id":53197,"library":"iris-contrib-httpexpect","title":"HTTPExpect","description":"Helps with end-to-end HTTP and REST API testing in Go, supporting various clients and frameworks.","status":"active","version":"1.1.2","language":"go","source_language":null,"source_url":"https://github.com/iris-contrib/httpexpect","tags":["testing","http","rest","api","end-to-end"],"install":[{"cmd":"go get github.com/iris-contrib/httpexpect","lang":"bash","label":"Install github.com/iris-contrib/httpexpect"}],"dependencies":[],"imports":[{"symbol":"httpexpect","correct":"github.com/iris-contrib/httpexpect"}],"quickstart":{"code":"package main\n\nimport (\n\t\"net/http\"\n\t\"net/http/httptest\"\n\t\"github.com/iris-contrib/httpexpect\"\n)\n\nfunc main() {\n\thandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tw.Write([]byte(\"Hello\"))\n\t})\n\tserver := httptest.NewServer(handler)\n\tdefer server.Close()\n\n\te := httpexpect.New(t, server.URL)\n\te.GET(\"/\").Expect().Status(http.StatusOK).Body().Equal(\"Hello\")\n}","lang":"go","description":"Test a simple HTTP handler using httpexpect."},"warnings":[{"fix":"Use httpexpect.New(t, ...) only inside test functions with *testing.T parameter.","message":"The package uses a custom 't' testing object; ensure you pass a *testing.T in test functions.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'api':11,23 'client':17 'end':5,7,25,27 'end-to-end':4,24 'framework':19 'go':14 'help':2 'http':8,21 'httpexpect':1 'rest':10,22 'support':15 'test':12,20 'various':16","created_at":"2026-06-15T07:30:40.911941+00:00","updated_at":"2026-06-15T07:30:40.911941+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/iris-contrib/httpexpect","github":"https://github.com/iris-contrib/httpexpect","docs":"https://pkg.go.dev/github.com/iris-contrib/httpexpect#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}}