Skip to content

2.11.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 15 Jan 15:13

Add support to configure an expected Authorization header on requests. Contributed by Joshua5 in #26

Usage:

handler
.RespondTo()
.Post()
.ForUrl("/search")
.AndAuthorization(new AuthenticationHeaderValue("Scheme", "Value"))
.With(HttpStatusCode.Forbidden);