Closed marcosnils closed 9 years ago
+1! Could you also update the Readme?
@tinchogob done.
How about we also make reply similar to the request? So it is nestable and offers a nicer API. For example you could do:
mock.get('/foo').set('Authorization', '123456').reply(401).set('WWW-Authenticate', 'Basic realm=foobar');
API was taken from the same way nock does it (https://github.com/pgte/nock#specifying-reply-headers)