A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.
open class CallAgent
An agent responsible for remote calls. |
|
data class Credentials
Username and password credentials. |
|
enum class HttpMethod |
|
data class JsonRpcRequest |
|
data class JsonRpcResponse |
|
open expect class KVServer
A server. |
|
class LoginService
Pac4j form login dispatcher. |
|
expect class Profile
A user profile. |
|
open class RemoteAgent<out T>
Client side agent for JSON-RPC remote calls. |
|
expect interface Request
A server request. |
|
enum class RpcHttpMethod |
|
abstract class SecurityMgr
Pac4j form login dispatcher. |
|
open expect class ServiceManager<out T>
Multiplatform service manager. |
class SecurityException : Exception
A security exception. |
actual typealias Profile = <ERROR CLASS>
A user profile. |
const val HTTP_UNAUTHORIZED: Int
HTTP status unauthorized (401). |
fun <RESP> Request?.async(block: (Request) -> RESP): Deferred<RESP>
A helper extension function for asynchronous request processing. fun <RESP> Request?.async(block: (Request, <ERROR CLASS>) -> RESP): Deferred<RESP>
A helper extension function for asynchronous request processing with session. fun <RESP> Request?.async(block: (Request, <ERROR CLASS>, Profile) -> RESP): Deferred<RESP>
A helper extension function for asynchronous request processing with session and user profile. |