HttpServer

class HttpServer(val rootServerJob: Job, val acceptJob: Job, val serverSocket: Deferred<ServerSocket>)

Represents a server instance

Constructors

Link copied to clipboard
fun HttpServer(rootServerJob: Job, acceptJob: Job, serverSocket: Deferred<ServerSocket>)

Properties

Link copied to clipboard
val acceptJob: Job

client connections accepting job

Link copied to clipboard
val rootServerJob: Job

server job - root for all jobs

Link copied to clipboard
val serverSocket: Deferred<ServerSocket>

a deferred server socket instance, could be completed with error if it failed to bind