MyTested.WebApi icon indicating copy to clipboard operation
MyTested.WebApi copied to clipboard

Keep track of added and removed headers for global test server

Open bartlannoeye opened this issue 7 years ago • 1 comments

In case someone opts for the global test server instead of a per-test server, we should keep track of added and removed headers to restore to the default state after test execution.

bartlannoeye avatar Oct 29 '16 10:10 bartlannoeye

The WithoutDefaultRequestHeader method should be documented here - https://github.com/ivaylokenov/MyTested.WebApi/tree/master/documentation

Also, I believe there should be a multiple headers option - WithoutDefaultRequestHeaders(params string[] keys), for example.

ivaylokenov avatar Oct 29 '16 10:10 ivaylokenov