AgsHttpResponse

public struct AgsHttpResponse

Structure returned as response to http request. Represents data or error that was returned from request

  • Contains response body if no error is thrown

    Declaration

    Swift

    public let response: Any?
  • Contains error if request failed

    Declaration

    Swift

    public let error: Error?
  • Contains status code (could be empty if device is offline)

    Declaration

    Swift

    public let statusCode: Int?
  • Undocumented

    Declaration

    Swift

    public init(response: Any? = nil,
                error: Error? = nil,
                statusCode: Int? = nil)