{"repo":"gavv/httpexpect","free":true,"listed":false,"github":"https://github.com/gavv/httpexpect","clone":"git clone https://github.com/gavv/httpexpect.git","description":"End-to-end HTTP and REST API testing for Go.","language":"Go","stars":2724,"topics":["http","rest","json","websocket","testing","assertions"],"license":"MIT","category":"networking-infra","readme_excerpt":"httpexpect Concise, declarative, and easy to use end-to-end HTTP and REST API testing for Go (golang). Basically, httpexpect is a set of chainable builders for HTTP requests and assertions for HTTP responses and payload, on top of net/http and several utility packages. Workflow: Incrementally build HTTP requests. Inspect HTTP responses. Inspect response payload recursively. Features Request builder URL path construction, with simple string interpolation provided by go-interpol package. URL query parameters (encoding using go-querystring package). Headers, cookies, payload: JSON, urlencoded or multipart forms (encoding using form package), plain text. Custom reusable request builders and request transformers. Response assertions Response status, predefined status ranges. Headers, cookies, payload: JSON, JSONP, forms, text. Round-trip time. Custom reusable response matchers. Payload assertions Type-specific assertions, supported types: object, array, string, number, boolean, null, datetime, duration, cookie. Regular expressions. Simple JSON queries (using subset of JSONPath), provided by jsonpath package. JSON Schema validation, provided by gojsonschema package. WebSocket support (thanks to @tyranron) Upgrade an HTTP connection to a WebSocket connection (we use gorilla/websocket internally). Interact with the WebSocket server. Inspect WebSocket connection parameters and WebSocket messages. Pretty printing Verbose error messages. JSON diff is produced on failure using gojsondiff","default_branch":null,"files":null,"tree":[],"storefront":"/r/gavv","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gavv/httpexpect/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}