Set a request header. Alternative syntax.
Step pattern
Given (?:I set the header|we set the header|the header) "([^"]*)" (?:to|is) "([^"]*)"Examples
Example #1
Given I set the header "Content-Type" to "application/json"Example #2
Given I set the header "Authorization" to "Bearer token123"Example #3
Given the header "Accept" is "application/json"Example #4
Given we set the header "X-Api-Key" to "abcd-1234"Example #5
Given I set the header "If-Match" to "etag-123"Example #6
Given the header "User-Agent" is "test-runner"Example #7
Given we set the header "Accept-Language" to "en-US"Example #8
Given I set the header "Cache-Control" to "no-cache"