This page comes from Gavel 5.0.0. It is not part of the 2.0.0 docs. See the latest Gavel docs.
Method
Background:
- Given I expect "
method" to be "POST"
Scenario: HTTP message method match
- Given the actual "
method" is "POST" - When Gavel validates the HTTP message
- Then the actual HTTP message is valid
- And the "
method" is valid
Scenario: Different HTTP message method
- Given the actual "
method" is "GET" - When Gavel validates the HTTP message
- Then the actual HTTP message is NOT valid
- And the "
method" is NOT valid
Source: features/expectations/method.feature at v5.0.0, Gavel (MIT license).