Skip to content

Default HTTP headers are not visible in beforeRequest hooks #3566

@mnylen

Description

@mnylen

Version info:

Artillery: 2.0.23
Node.js:   v22.15.0
OS:        darwin

Default HTTP headers configured in config.http.defaults.headers are not visible in beforeRequest hooks either in the request parameters or context. They end up in the outgoing HTTP request though.

This would be useful, as one might need to calculate a request signature based on the request headers, and it's impossible to do so if not all the headers are present in the beforeRequest hook. As a workaround, it's of course possible to duplicate all the default headers in each request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions