Skip to content
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

Add support for RequestAdapter #62

Closed
wants to merge 2 commits into from
Closed

Add support for RequestAdapter #62

wants to merge 2 commits into from

Conversation

n13
Copy link
Contributor

@n13 n13 commented Mar 25, 2019

Addresses this issue: #61

RequestAdapter allows the client to make changes to the URL request before it goes out, so for example we can update the authentication token with a bearer token which changes frequently.

new methods wsRequest() and wsUpdate are copies of the Alamofire methods except they set the request adapter - if any - before firing off the request.

Alamofire 5 will have an asyncrhonous request adapter that will allow async calls to be made before requests are sent off, but this is still based on AF4.

@n13
Copy link
Contributor Author

n13 commented Mar 25, 2019

removing this, added RequestRetrier as well and these go together. Will open another PR once it's working.

@n13 n13 closed this Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant