DataResponse

@objc(FSNetworkDataResponse)
public class DataResponse : NSObject

This object represents a network data response.

Public Properties

  • The URL request sent to the server.

    Declaration

    Swift

    @objc
    public let request: URLRequest?
  • The server’s response to the URL request.

    Declaration

    Swift

    @objc
    public let response: HTTPURLResponse?
  • The data returned by the server.

    Declaration

    Swift

    @objc
    public let data: Data?
  • Returns the associated error value if the result if it is a failure, nil otherwise.

    Declaration

    Swift

    @objc
    public var error: Swift.Error?