Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import Foundation
import APIKit
import Himotoki
extension RequestType where Response: Decodable, Response.DecodedType == Response {
func responseFromObject(object: AnyObject, URLResponse: NSHTTPURLResponse) -> Response? {
return try? decode(object)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment