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: Sources/ComposableArchitecturePattern/Server.swift
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,17 @@
8
8
import SwiftUI
9
9
import OSLog
10
10
11
+
/// The HTTP method type.
11
12
publicenumHTTPMethod:String,Equatable{
12
13
case DELETE
13
14
case GET
14
15
case POST
15
16
case PUT
16
17
}
17
18
19
+
/// An actor that handles server interactions.
20
+
///
21
+
/// This is the equivalent of a web service. The idea is for this to be the base actor to handle all server interactions that correspond to the defined API's. This ensures API's can be scoped to specific servers, thus allowing you to scope feature support.
18
22
publicprotocolServer:Actor{
19
23
/// Environments supported by this server.
20
24
varenvironments:[ServerEnvironment]{get}
@@ -33,6 +37,7 @@ public protocol Server: Actor {
33
37
/// All the requests currently being processed.
34
38
varrequestsBeingProcessed:Set<UUID>{getset}
35
39
40
+
/// The logger to use with communicating server activity.
0 commit comments