mockttp icon indicating copy to clipboard operation
mockttp copied to clipboard

Powerful friendly HTTP mock server & proxy library

Results 42 mockttp issues
Sort by recently updated
recently updated
newest added

I'm not quite sure how to connect response with its request? Say I'd like to be able to do: ```ts server.forUnmatchedRequest().thenPassThrough({ beforeRequest: (req) => { console.log('Request:', req.url.substring(0, 80) + '...');...

My proxy code is as follows: ```ts server.forUnmatchedRequest().thenPassThrough({}); ``` And I get lots of messages like this in the console: ``` Failed to handle request: getaddrinfo ENOTFOUND ton.local.twitter.com Failed to...

Sorry if it's actually covered somewhere in the docs, I failed to find it. Could you please point out on the proper place in the docs or provide a basic...

My use case is currently as follows: 1. I create a mockttp server on some port 2. I create replies for paths and match specific fields in the headers How...

Hello, The android apps have a certificate pinning that block mockttp. Here is the debug output: ```` TLS client error: {"failureCause":"cert-rejected","hostname":"api.twitter.com","remoteIpAddress":"::ffff:10.3.141.91","remotePort":45686,"tags":[],"timingEvents":{"startTime":1641902289465,"connectTimestamp":12868.375694,"failureTimestamp":12923.67577}} ```` I know that there is no way to...

I think it would nice to be able to allow matching based on negation. In my case I would like to match when a header is not present, but I...

Hello, I've been playing this morning with this library to write some tests, thanks for making it available on the first place 😄 I don't know if this already exists...

In the Readme, you have an in-depth tutorial that gives an example of the browser code in the format const mockttp = require('mockttp').getLocal(); which would work in Node.js but not...

How would I go about using this [example](https://github.com/httptoolkit/mockttp-proxy-demo) to intercept HTTPS requests from an Electron exe?