JcMultiPartRequestResponse

public struct JcMultiPartRequestResponse

Wrapper for a request to fetch multipart data

  • http response status, content will only be valid if code is 200…201

    Declaration

    Swift

    public let httpStatus: Int
  • Optional http headers that are to be sent or were received

    Declaration

    Swift

    public let httpHeaders: [AnyHashable : Any]?
  • Optional http response message returned from server, generally only provided in case of error

    Declaration

    Swift

    public let httpMessage: String?
  • Multipart content, might be nil if this is a response and the httpStatus is not 200…201

    Declaration

    Swift

    public let content: JcMultiPartContent?
  • Flags .SUCCESS or failure of request.

    Two types of failure are possible;

    SERVER_SIDE_FAILURE

    Error was server side, refer to httpStatus & httpMessage.

    CLIENT_SIDE_FAILURE

    The failure was triggered on our side when trying to translate the response into something useful, refer instead to error

    Notes:

    Connection failures will not be reported here, as they are triggered immediately when making calls

    Declaration

    Swift

    public var status: JCResponseStatus { get }