Sets a single HTTP request header.
Step pattern
Given (?:I |we )?set header "([^"]*)" with value "([^"]*)"Examples
Example #1
Given I set header "Content-Type" with value "application/json"Example #2
Given I set header "Authorization" with value "Bearer token123"Example #3
Given I set header "Accept" with value "application/xml"Example #4
Given I set header "Accept" with value "application/json"Example #5
Given we set header "X-Api-Key" with value "abcd-1234"Example #6
Given I set header "User-Agent" with value "test-runner"Example #7
Given we set header "Accept-Language" with value "en-US"Example #8
Given I set header "If-None-Match" with value "etag-xyz"