diff --git a/Jayme.podspec b/Jayme.podspec index e020dba..cf4a354 100644 --- a/Jayme.podspec +++ b/Jayme.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "Jayme" - s.version = "4.0.1" + s.version = "4.0.2" s.summary = "An abstraction layer that eases RESTful interconnections in Swift" s.description = <<-DESC Jayme is a Swift library that provides you with a set of tools which reduce drastically the amount of code you have to write to perform CRUD operations to a RESTful API. It also encapsulates networking code, encouraging you to separate networking and business logic code out of your view controllers. diff --git a/Jayme/HTTPResponseParser.swift b/Jayme/HTTPResponseParser.swift index db075ae..ccce519 100644 --- a/Jayme/HTTPResponseParser.swift +++ b/Jayme/HTTPResponseParser.swift @@ -26,6 +26,9 @@ public typealias HTTPResponseParserResult = Result<(data: Data?, pageInfo: PageI /// A parser that converts raw response data (as they come from `URLSession`) into other type of data that is more Jayme-architectured. open class HTTPResponseParser { + /// Public initializer + public init () {} + /// Turns response data as it comes from `URLSession` (a.k.a. `FullHTTPResponse`) into a different format, which is more useful from Jayme's perspective (a.k.a. `HTTPResponseParserResult`). open func parse(_ response: FullHTTPResponse) -> HTTPResponseParserResult { if let error = response.error {