Server

@JSImport("http", "Server") @native @JSType class Server() extends StObject with HttpBase
trait HttpBase
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Constructors

def this(options: ServerOptions)
def this(requestListener: RequestListener)
def this(options: ServerOptions, requestListener: RequestListener)

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def setTimeout(msecs: Unit, callback: Function0[Unit]): Server
Inherited from
HttpBase
def setTimeout(msecs: Double, callback: Function0[Unit]): Server
Inherited from
HttpBase
def setTimeout(msecs: Double): Server
Inherited from
HttpBase
def setTimeout(callback: Function0[Unit]): Server
Inherited from
HttpBase
Inherited from
HttpBase
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Inherited fields

var headersTimeout: Double

Limit the amount of time the parser will wait to receive the complete HTTP headers.

Limit the amount of time the parser will wait to receive the complete HTTP headers.

Inherited from
HttpBase
var keepAliveTimeout: Double
Inherited from
HttpBase
var maxHeadersCount: Double | Null

Limits maximum incoming headers count. If set to 0, no limit will be applied.

Limits maximum incoming headers count. If set to 0, no limit will be applied.

Inherited from
HttpBase
var requestTimeout: Double

Sets the timeout value in milliseconds for receiving the entire request from the client.

Sets the timeout value in milliseconds for receiving the entire request from the client.

Inherited from
HttpBase
var timeout: Double
Inherited from
HttpBase