Skip to content

Quarkus Rest Client: Passing a map of headers to the client interface methods #48431

@VphDreamer

Description

@VphDreamer

Description

With Quarkus Rest Client, it is possible to pass headers to the "proxy" methods through ClientHeaderParam or HeaderParam, both of these options require having early knowledge of the headers names during development phase. It would be nice to be able to pass a map of headers similar to what is done for the query parameters via RestQuery. It provides more flexibility for cases where headers are known only during runtime and when it is easier to pass them as parameters instead of using factories or filters.

Implementation ideas

A new annotation @RestHeader similar to @RestQuery .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions