8000 usefulness of userInfo · Issue #9 · aronbalog/Vox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

usefulness of userInfo #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Thiryn opened this issue Apr 20, 2018 · 0 comments
Open

usefulness of userInfo #9

Thiryn opened this issue Apr 20, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@Thiryn
Copy link
Thiryn commented Apr 20, 2018

I am not sure the userInfo is the best way to handle user-specific data.
In the documentation it says that userInfo is used for adding headers at run-time.
I think headers should be an attribute of Request and methods such as Request::addHeader and Request::removeHeader should be used to manipulate headers to be able to do something like

personDataSource
    .fetch(1)
    .addHeader("token", "YsbV6gL35d")
    .result(/* [..] */)

At another extent, the Alamofire Client does not uses the userData for headers here

@aronbalog aronbalog added the enhancement New feature or request label May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants
0