axios-mock-adapter icon indicating copy to clipboard operation
axios-mock-adapter copied to clipboard

Support response header

Open Caellian opened this issue 2 years ago • 0 comments

In order to mock auth route I need to provide a custom header in the reponse that's returned by the server.

As far as I can tell, only body of the response can be specified neither documentation gives details on this nor have I been able to figure it out by looking at the sources.

If it's already supported could you provide an example of modifying response headers?

Caellian avatar Oct 26 '23 14:10 Caellian