segmentio / segmentio/analytics.js-integrations
[segmentio] Make HTTP headers configurable
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 125
- Forks
- 136
- Avg merge
- 2h 45m
- Merged PRs (30d)
- 1
Description
Similarly to what I have described in #559, we would also need an ability to add custom HTTP headers to requests made by analytics.js library. Right now, the headers are hardcoded here. Can you add a new configuration property which will allow us to append additional HTTP headers?
Contributor guide
No contributing guide indexed for this repository
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 in integrations/segmentio/lib/index.js at the hardcoded headers around line 375, then review issue #559 for the related configuration approach. Add a configuration property that appends custom HTTP headers to analytics.js requests; done means callers can provide additional headers without changing the defaults.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100