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
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,16 +22,16 @@ extension Request {
22
22
23
23
And... voila! We defined a `login(_:)` request which will request login endpoint by sending a `UserBody` and waiting for a `UserResponse`. Now it's time to use it.
24
24
25
-
You can also use an enum to define your Request path:
25
+
You can declare constant endpoints if needed (refer to Endpoint documentation to see more):
This package contain extensions on Foundation objects to bring some convenience methods to Foundation that could be used by any network package or project.
11
+
12
+
Related article: [Designing a lightweight HTTP framework: foundation](https://swiftunwrap.com/article/designing-http-framework-foundation/).
13
+
14
+
## SimpleHTTP
15
+
16
+
It contain package true functionalities like Request or Session objects. When building a functionality in this package try to do it in 3 steps:
17
+
18
+
- Design the new objects
19
+
- Make them interact with Foundation. For instance `Request+URLRequest.swift` bridge from `Request` to `URLRequest`
0 commit comments