@@ -13,30 +13,30 @@ import Foundation
1313public protocol ServerAPI : Identifiable , Equatable {
1414 /// The environment this API should be used against. Default is `nil`.
1515 /// - Note: If it can be used against any environment, leave it `nil`.
16- var environment : ServerEnvironment ? { get set }
16+ var environment : ServerEnvironment ? { get }
1717
1818 /// The path this API corresponds to.
19- var path : String { get set }
19+ var path : String { get }
2020
2121 /// The headers required for this API. Default is `nil`.
22- var headers : [ String : String ] ? { get set }
22+ var headers : [ String : String ] ? { get }
2323
2424 /// The queries required for this API. Default is `nil`.
25- var queries : [ URLQueryItem ] ? { get set }
25+ var queries : [ URLQueryItem ] ? { get }
2626
2727 /// Data to send in the request's body.
28- var body : Data ? { get set }
28+ var body : Data ? { get }
2929
3030 /// All HTTP methods this API supports.
31- var supportedHTTPMethods : [ HTTPMethod ] { get set }
31+ var supportedHTTPMethods : [ HTTPMethod ] { get }
3232
3333 /// All the return objects this API supports. Default is `nil`.
3434 ///
3535 /// This helps ensure a non-supported object isn't attempted to be used with the API.
36- var supportedReturnObjects : [ Codable . Type ] ? { get set }
36+ var supportedReturnObjects : [ Codable . Type ] ? { get }
3737
3838 /// The timeout length for the request. Default is `60`.
39- var timeoutInterval : TimeInterval { get set }
39+ var timeoutInterval : TimeInterval { get }
4040
4141 /// Whether to block this API if the server is attempting to use a different environment.
4242 ///
0 commit comments