crossbario / crossbario/autobahn-python

[Feature] Option to pass extra headers to Component

Open
#1,131 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement needs-investigation wamp
Dominant language
Python
Stars
2.5k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

It would be nice if there was some higher-level way to configure extra headers for a Component. Currently, this can only be done by changing the session_factory.

Our use-case is auth-headers, hence we would probably prefer extra headers as an argument to the Component constructor (I would volunteer for a PR). I am unsure if there is a use-case for extra-headers from the config. Opinions?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Component constructor and the session_factory path mentioned in the issue to understand where request headers are configured. Resolve whether headers belong on Component, in configuration, or both, then define the behavior and add coverage for the supported authentication-header use case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend-api-design, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.