Set multiple headers using a table.
Step pattern
Given (?:I|we) set the following headers:Examples
Example #1
Given I set the following headers:
| Content-Type | application/json |
| Authorization | Bearer token123 |
| Accept | application/json |Example #2
Given we set the following headers:
| Content-Type | application/json |
| X-Api-Key | abcd-1234 |
| Accept-Language | en-US |Example #3
Given I set the following headers:
| User-Agent | test-runner |
| Cache-Control | no-cache |
| If-None-Match | etag-xyz |Example #4
Given we set the following headers:
| Authorization | Bearer {{token}} |
| Accept | application/json |
| X-Request-ID | req-001 |