📄️ Using local interceptors
HTTP interceptors allow you to handle requests and return custom responses. Their primary use is to mock HTTP requests
📄️ Using remote interceptors
HTTP interceptors allow you to handle requests and return custom responses. Their primary use is to mock HTTP requests
📄️ Using headers
HTTP headers are key-value pairs that contain
📄️ Using search params (query)
URL search parameters, also known as query parameters, are
📄️ Using path params
Path parameters are a way to include dynamic values in the URL path of a request. They are typically used to identify a
📄️ Using bodies
Bodies are used to send data in a request
📄️ Declarative assertions
@zimic/interceptor provides a way to declaratively check if your application is making the expected HTTP requests,
📄️ Unhandled requests
When a request is not matched by any interceptor, it is considered unhandled and will be rejected and logged to the
📄️ Testing
@zimic/interceptor is designed with testing in mind and provides utilities to give you confidence in your tests. Using
📄️ Typegen
@zimic/interceptor uses @zimic/http, which can infer types from