-
Notifications
You must be signed in to change notification settings - Fork 8
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
Create HTTP Post #16
Create HTTP Post #16
Conversation
@@ -0,0 +1,15 @@ | |||
import Foundation | |||
|
|||
struct BodyBuilder: BodyBuildable { |
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.
Create tests for this struct
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.
Codecov Report
@@ Coverage Diff @@
## master #16 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 12 20 +8
Lines 163 240 +77
Branches 11 16 +5
=====================================
+ Hits 163 240 +77
Continue to review full report at Codecov.
|
} | ||
|
||
private func runTask<Entity: Decodable>(with request: URLRequest, onComplete: @escaping (Result<Entity>) -> Void) { | ||
let task = urlSession.dataTask(with: request) { data, _, error in |
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.
Extract this to avoid duplication. Is the same at NetworkGet
.
… expression type check
First part of issue #8 implementing POST method.
NetworkPost
class;NetworkPostTests
.