k6-cucumber-steps API Reference - v2.0.10-alpha.0
    Preparing search index...

    Function k6IMakeAGetRequestToWithHeaders

    • Makes a GET request with custom headers.

      Parameters

      • endpoint: string

        API endpoint

      • headersTable: any[]

        Headers data table

      Returns void

      When I k6 make a GET request to "/users/1" with headers:
        | Authorization | Content-Type     |
        | Bearer abc123 | application/json |