HTTPretty icon indicating copy to clipboard operation
HTTPretty copied to clipboard

Create an Enforced mode where everything must be mocked.

Open jamielennox opened this issue 11 years ago • 6 comments

Whilst this shouldn't apply all the time if i'm mocking my HTTP traffic then chances are I want all my HTTP traffic mocked.

There should be a way to tell HTTPretty that if you receive a call that is not mocked throw an error rather than pass it on to the real source.

jamielennox avatar Jun 21 '13 05:06 jamielennox

:+1: or a way to record all outgoing traffic?

rosscdh avatar Oct 24 '13 07:10 rosscdh

That would be great!

deni64k avatar Jan 10 '14 14:01 deni64k

I have a branch I'm using locally; Ill spend some time getting it right and outputting to a specified logger perhaps?

rosscdh avatar Jan 10 '14 14:01 rosscdh

That would be nice for seeing what packages are calling out to other services too.

rgbkrk avatar Jan 10 '14 14:01 rgbkrk

Exactly the thought behind it..

my use case was that I had a whole number of service calling out to linkedin, google, facebook, usps and a few others and needed to see who they were and what they were sending.

On Fri, Jan 10, 2014 at 3:15 PM, Kyle Kelley [email protected]:

That would be nice for seeing what packages are calling out to other services too.

— Reply to this email directly or view it on GitHubhttps://github.com/gabrielfalcao/HTTPretty/issues/78#issuecomment-32030134 .

rosscdh avatar Jan 10 '14 14:01 rosscdh

Yeah, that beats pulling up wireshark.

rgbkrk avatar Jan 10 '14 14:01 rgbkrk