Given I set the following headers:

This step definition is used to set multiple HTTP headers at once in API tests. Instead of writing one step per header, you can define them all neatly in a table.

Given I set the following headers:$

This tells the test to add all the listed headers to the next API request.

 

Example: 

Given I set the following headers:
    | Content-Type  | application/json |
    | Authorization | Bearer token123  |
    | Accept        | application/json |