Status Event

Fired when the HTTP status line is received from the server.

Syntax

public open class DefaultRestEventListener : RestEventListener {
  ...
  public override fun status(e: RestStatusEvent) {}
  ...
}

public class RestStatusEvent {
  val httpVersion: String?
  val statusCode: Int
  val description: String?
}

Remarks

HTTPVersion is a string containing the HTTP version string as returned from the server (e.g. "1.1").

StatusCode contains the HTTP status code (e.g. 200), and Description the associated message returned by the server (e.g. "OK").

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks 2020 Kotlin Edition - Version 20.0 [Build 7941]