Response

public struct Response

It keeps data related to the server response.

  • The server response as a URLResponse object.

    Declaration

    Swift

    private(set) public var response: URLResponse?
  • The HTTP status code (2xx, 3xx, etc).

    Declaration

    Swift

    private(set) public var httpStatusCode: Int
  • Any response headers represented as a RestEntity object.

    Declaration

    Swift

    private(set) public var headers: GTRest.RestEntity