-
Notifications
You must be signed in to change notification settings - Fork 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
Add URL arguments on get methods #3
Add URL arguments on get methods #3
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3 +/- ##
==========================================
- Coverage 94.04% 92.78% -1.27%
==========================================
Files 6 6
Lines 84 97 +13
Branches 7 8 +1
==========================================
+ Hits 79 90 +11
- Misses 5 7 +2
Continue to review full report at Codecov.
|
1b15ebd
to
d0d98a2
Compare
public func get<Entity: Decodable, Query: Encodable>(url: String, query: Query, | ||
onComplete: @escaping (Result<Entity>) -> Void) { | ||
guard let url = URL(string: url) else { | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is necessary to call onComplete
with fail
and FrisbeeError.invalidUrl
error.
d0d98a2
to
f16fc2e
Compare
The String argument overloads should prefer URL overloads since they are already converted and ready for use
f16fc2e
to
85036c7
Compare
Thank you @william-wc it was very good! |
This allows
URL
to be build beforehand by someone elseThe
String
argument overloads should prefer/useURL
overloads since they are already converted and ready for use