{"library":"unexpected-http","type":"library","category":null,"description":"unexpected-http is a plugin for the `unexpected` assertion library, specifically designed for testing HTTP servers and clients. It extends `unexpected`'s declarative syntax, allowing developers to write expressive assertions against HTTP requests and responses, mimicking the style of `unexpected-express`. As of version 9.0.0, it supports `unexpected` versions 10 through 13. The library enables fluent testing of server-side applications by asserting on status codes, headers, and body content of HTTP interactions. While its release cadence often aligns with its core `unexpected` dependency, it receives updates to maintain compatibility and introduce features relevant to HTTP testing. Its primary differentiator is its deep integration into the `unexpected` ecosystem, providing a consistent assertion experience across various testing scenarios, including frontend, backend, and API testing, by leveraging `unexpected`'s powerful diffing and introspection capabilities for failed assertions.","language":"javascript","status":"active","version":"9.0.0","tags":["javascript","http","test","assertion","server","client"],"last_verified":"Wed May 27","install":[{"cmd":"npm install unexpected-http","imports":["import unexpectedHttp from 'unexpected-http';","import { expect } from 'unexpected';","const unexpectedHttp = require('unexpected-http');"]},{"cmd":"yarn add unexpected-http","imports":[]},{"cmd":"pnpm add unexpected-http","imports":[]}],"homepage":null,"github":"https://github.com/unexpectedjs/unexpected-http","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/unexpected-http","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/unexpected-http/compatibility"}}