mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-27 13:15:55 +03:00
[GH-ISSUE #212] Provide a method on OAuthSwiftClient that accepts a plain NSURLRequest #118
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#118
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FGoessler on GitHub (Apr 1, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/212
To interact with existing Objective C APIs, which often work with NSURLRequests, it would be nice to have a method on OAuthSwiftClient which accepts an NSURLRequest in addition to the more convenient method that accept URL string, parameters, headers and co.
With that it would also be possible to use advanced properties of NSURLRequest like cachePolicy and timeoutInterval.
@phimage commented on GitHub (Apr 1, 2016):
OAuthSwiftHTTPRequesthave a private init withNSURLRequest. Don't know if already used.So in
OAuthSwiftClientarequestmethod could be created withNSURLRequestas parametermakeRequestmust be splitted to 3 functionsNSURLRequest(and call the first one)PR if you want
@FGoessler commented on GitHub (Apr 3, 2016):
The initialiser on
OAuthSwiftHTTPRequestwhich accepts anNSURLRequestisn't used yet, but imo also partially broken, since it doesn't extract the requests data into theOAuthSwiftHTTPRequestlocal properties (e.g. params, headers, ...) which might lead to confusion when requesting certain information about the request from anOAuthSwiftHTTPRequestobject which are wrong then.I'll try to fix that as well.