Explorar el Código

Revert "Response initializer now has internal ACL since it does not need to be public."

This reverts commit f5ebe3b31286d61b48ba591cffdf384041e55a08. After more investigation, the `Response` struct initializer definitely needs to be public.
Christian Noon hace 10 años
padre
commit
ba280a4fbd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Source/Response.swift

+ 1 - 1
Source/Response.swift

@@ -47,7 +47,7 @@ public struct Response<Value, Error: ErrorType> {
     
         - returns: the new `Response` instance.
     */
-    init(request: NSURLRequest?, response: NSHTTPURLResponse?, data: NSData?, result: Result<Value, Error>) {
+    public init(request: NSURLRequest?, response: NSHTTPURLResponse?, data: NSData?, result: Result<Value, Error>) {
         self.request = request
         self.response = response
         self.data = data