Response

extension Response
  • Decode json response to object.

    Declaration

    Swift

    public func map<T>(to type: T.Type) throws -> T where T : JSONDecodable
  • Decode json response to array of objects.

    Declaration

    Swift

    public func map<T>(to type: [T.Type]) throws -> [T] where T : JSONDecodable
  • Return all headers.

    Declaration

    Swift

    public var httpHeader: [String : String]? { get }
  • Undocumented

    Declaration

    Swift

    public func header(for key: HTTPResponseHeader) -> String?