Skip to content

Instance-level Support for Headers #50

@d42ohpaz

Description

@d42ohpaz

While I understand that I can set headers at the configuration level, it would be extra convenient to be able to set headers at runtime against the instance.

My initial use-case would be to set the Authorization header (i.e., I have a JWT that I want to use for a session). As it stands, if I'm not mistaken, I can only override the \CURLOPT_HTTPHEADER array, but I cannot add to it.

In other words, I have a default Content-Type in my configuration, but I want to add the Authorization header at runtime after I've authenticated and gotten my token.

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