erikras / erikras/react-redux-universal-hot-example
How to set a header?
Open
- Dominant language
- JavaScript
- Stars
- 12.1k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
Using the client middleware, how do I set a header. I'm talking about when you do a request in this way:
```
return {
types: [LOGOUT, LOGOUT_SUCCESS, LOGOUT_FAIL],
promise: (client) => client.get('/logout')
};
```
Thanks.
Contributor guide
Research direction
Start by locating the client middleware and the implementation behind client.get('/logout') to determine how request options are passed. Document the supported way to set a header and verify the example against the middleware's existing request behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100