Skip to content

Commit 3cade41

Browse files
committed
made Response struct again
1 parent 5418c22 commit 3cade41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Response.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import Foundation
22

33
/// Used to store all response data returned from a completed request.
4-
public class Response: CustomDebugStringConvertible {
4+
public struct Response: CustomDebugStringConvertible {
55
public let response: NSURLResponse?
66

77
public let statusCode: Int
88
public let data: NSData
99

10-
public lazy var responseClass: ResponseClass = {
11-
return ResponseClass(statusCode: self.statusCode)
10+
public lazy var responseClass: ResponseStatus = {
11+
return ResponseStatus(statusCode: self.statusCode)
1212
}()
1313

1414
public init(statusCode: Int, data: NSData, response: NSURLResponse? = nil) {
@@ -36,7 +36,7 @@ public class Response: CustomDebugStringConvertible {
3636
- serverError: status code in 500 to 599
3737
- undefined: other status code
3838
*/
39-
public enum ResponseClass {
39+
public enum ResponseStatus {
4040
case informational
4141
case success
4242
case redirection

0 commit comments

Comments
 (0)