crossbario / crossbario/autobahn-python
[Feature] Option to pass extra headers to Component
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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