Skip to content
Snippets Groups Projects
Commit a800ea9e authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Make Request mutable

parent 18e3d8ad
No related branches found
No related tags found
No related merge requests found
...@@ -63,13 +63,13 @@ public class Request: CustomStringConvertible ...@@ -63,13 +63,13 @@ public class Request: CustomStringConvertible
case delete = "DELETE" case delete = "DELETE"
} }
public let url: String public var url: String
public let method: RequestMethod public var method: RequestMethod
public let authentication: Authentication? public var authentication: Authentication?
public let parameters: [String: String] public var parameters: [String: String]
public let payload: Data? public var payload: Data?
public let contentType: String? public var contentType: String?
public init(url: String, method: RequestMethod, authentication: Authentication?, parameters: [String: String] = [:], payload: Data? = nil, contentType: String?) { public init(url: String, method: RequestMethod, authentication: Authentication?, parameters: [String: String] = [:], payload: Data? = nil, contentType: String?) {
self.url = url self.url = url
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment