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

Make TimeoutInterval configurable to fix issue OAuthSwift/issues/667 #672

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MikeSpelling
Copy link

Rather than providing a default timeout in the Config initialiser which is never overriden I've moved this up to the top level requests. This should mean its a non-breaking change but allows a timeoutInterval to be passed where needed and used by the UrlRequest.
This is my first open source contribution so I welcome any feedback - thanks!

…initialiser up to the top level OAuth1/2Swift functions to allow them to be overriden.
@MikeSpelling
Copy link
Author

@phimage any thoughts on this PR?

@MikeSpelling
Copy link
Author

Any update on this as yet?

@vgritsenko
Copy link
Contributor

A thought from a peanut gallery... This seems to add an extra parameter into a lot of methods. Wouldn't it be better to subclass OAuthSwiftClient and override open makeRequest function and tailor request to your needs in there? It would need a few small changes to OAuthSwiftHTTPRequest, but it would result in much less changes overall.

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.

None yet

3 participants