Skip to content

Set client headers on a per request basis. #1597

@0xForerunner

Description

@0xForerunner

I need to send out requests with my http json rpc client. Each request will likely have a different set of headers.

Unfortunately I don't think the [rpc(client)] macro exposes any way to create a raw http request that I can add headers to.

My guess here is that the only workaround is to create a new HttpClient with custom headers for each outgoing request, which doesn't seem particularly efficient. Let me know if I'm missing something!

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