Package-level declarations

Legacy, jquery-based RESTful API client with support for type-safe connectivity.

Types

Link copied to clipboard
class BadGateway(val url: String, val method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class BadRequest(val url: String, val method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class Forbidden(val url: String, val method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
Link copied to clipboard
open class LegacyRestClient(module: <Error class: unknown class>? = null)

An agent responsible for remote calls.

Link copied to clipboard
class NotAllowed(val url: String, val method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class NotFound(val url: String, val method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class NotImplemented(val url: String, val method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
open class RemoteRequestException(val code: Short, val url: String, val method: HttpMethod, message: String)
Link copied to clipboard
data class Response<T>(val data: T, val textStatus: String, val jqXHR: <Error class: unknown class>)

A response wrapper

Link copied to clipboard
class ServerError(val url: String, val method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class ServiceUnavailable(val url: String, val method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class Unauthorized(val url: String, val method: HttpMethod, message: String) : RemoteRequestException
Link copied to clipboard
class XHRError(val url: String, val method: HttpMethod, message: String) : RemoteRequestException

Code 0 does not represent any http status, it represent XHR error (e.g. network error, CORS failure).

Properties

Link copied to clipboard
const val HTTP_BAD_GATEWAY: Short = 502
Link copied to clipboard
const val HTTP_BAD_REQUEST: Short = 400
Link copied to clipboard
const val HTTP_FORBIDDEN: Short = 403
Link copied to clipboard
const val HTTP_NOT_ALLOWED: Short = 405
Link copied to clipboard
const val HTTP_NOT_FOUND: Short = 404
Link copied to clipboard
const val HTTP_NOT_IMPLEMENTED: Short = 501
Link copied to clipboard
const val HTTP_SERVER_ERROR: Short = 500
Link copied to clipboard
Link copied to clipboard
const val HTTP_UNAUTHORIZED: Short = 401
Link copied to clipboard
const val XHR_ERROR: Short = 0