-
Notifications
You must be signed in to change notification settings - Fork 319
Open
Labels
NATSIssues related to `faststream.nats` module and NATS broker featuresIssues related to `faststream.nats` module and NATS broker featuresenhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
In nats-py 2.12.0, the ws_connection_headers parameter was added for sending headers when connecting via WS.
Describe the solution you'd like
Add ws_connection_headers to NatsBroker
Feature code example
from faststream.nats import NatsBroker
custom_headers = {
"Authorization": ["Bearer MySecretToken"],
"X-Client-ID": ["my-client-123"],
"Accept": ["application/json", "text/plain"]
}
broker = NatsBroker(
"ws://localhost:4222",
ws_connection_headers=custom_headers
)
...Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
NATSIssues related to `faststream.nats` module and NATS broker featuresIssues related to `faststream.nats` module and NATS broker featuresenhancementNew feature or requestNew feature or request