Skip to content

Allow setting custom kProxyHeaders #1876

@Sebmaster

Description

@Sebmaster

This would solve...

ProxyAgent currently only allows configuring the Authorization header for its CONNECT request to the proxy. I'd like to add different custom headers (e.g. User-Agent) as well. This header should only be sent in the CONNECT request, not in the tunneled requests to the target URL.

The implementation should look like...

I think providing a way to add more headers to kProxyHeaders - possibly just an arbitrary headers object in the options param?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions