erikras / erikras/react-redux-universal-hot-example

How to set a header?

Open
#1,191 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.