Closed dstj closed 3 years ago
Add ability to do this:
sut.Get("/testget", (req, args) => "testresponse") .Header((req, args) => args.Query.testquery == "Success" ? new KeyValuePair<string, string>("HeaderSuccess", "HeaderValueSuccess") : new KeyValuePair<string, string>("HeaderFailure", "HeaderValueFailure"));
and
sut.Get("/testget", (req, args) => "testresponse") .Headers((req, args) => args.Query.testquery == "Success" ? new[] { new KeyValuePair<string, string>("HeaderSuccess1", "HeaderValueSuccess1"), new KeyValuePair<string, string>("HeaderSuccess2", "HeaderValueSuccess2"), } : new[] { new KeyValuePair<string, string>("HeaderFailure1", "HeaderValueFailure1"), new KeyValuePair<string, string>("HeaderFailure2", "HeaderValueFailure2"), });
Was reworked in #30
Add ability to do this:
Add single header
and
Multiple headers