You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Release 0.2.0
This release contains convenient helper methods that wrap Swift's Combine + URLSession and supplies an enjoyable and succinct developer experience to:
- Build and make requests
- Encode json Body
- Decode the Json Responses
- Handle Status Code Validation
- Return developer friendly errors to work with
## What is not in this release
All the desired helper methods `patch` `delete` etc.,
## Notes
The branch was titled `release1.0` by mistake.
Copy file name to clipboardExpand all lines: Sources/HTTPEngine/HTTPEngine.swift
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,11 @@
1
1
import Foundation
2
2
import Combine
3
3
4
+
/// HTTP Request Header
4
5
publictypealiasHeader=[String:String]
6
+
/// Boolean that represents the success or failure of the ResponseValidationClosure
5
7
publictypealiasValidResponse=Bool
8
+
/// A function that takes the HTTPResonse's StatusCode in for comparison. Return `true` if the code is expected or `false` if the function should throw an error.
0 commit comments