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
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 ofRequest
and methods such asRequest::addHeader
andRequest::removeHeader
should be used to manipulate headers to be able to do something likeAt another extent, the
Alamofire
Client does not uses theuserData
for headers here