Packages

class Server extends Object with StObject

See http.Server for more information.

Annotations
@JSType() @JSImport("https", "Server") @native()
Since

v0.3.4

Linear Supertypes
StObject, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Server
  2. StObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Server(options: ServerOptions, requestListener: RequestListener)
  2. new Server(requestListener: RequestListener)
  3. new Server(options: ServerOptions)
  4. new Server()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addListener(event: String, listener: Function1[Any, Unit]): Server.this.type
  5. def addListener_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  6. def addListener_checkContinue(event: checkContinue, listener: RequestListener): Server.this.type
    Annotations
    @JSName("addListener")
  7. def addListener_checkExpectation(event: checkExpectation, listener: RequestListener): Server.this.type
    Annotations
    @JSName("addListener")
  8. def addListener_clientError(event: clientError, listener: Function2[Error, Duplex, Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  9. def addListener_close(event: close, listener: Function0[Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  10. def addListener_connect(event: connect, listener: Function3[IncomingMessage, Duplex, Buffer, Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  11. def addListener_connection(event: connection, listener: Function1[Duplex, Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  12. def addListener_error(event: error, listener: Function1[Error, Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  13. def addListener_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  14. def addListener_listening(event: listening, listener: Function0[Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  15. def addListener_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  16. def addListener_request(event: request, listener: RequestListener): Server.this.type
    Annotations
    @JSName("addListener")
  17. def addListener_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  18. def addListener_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  19. def addListener_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  20. def addListener_upgrade(event: upgrade, listener: Function3[IncomingMessage, Duplex, Buffer, Unit]): Server.this.type
    Annotations
    @JSName("addListener")
  21. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  22. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  23. def emit(event: String, args: Any*): Boolean
  24. def emit_OCSPRequest(event: OCSPRequest, certificate: Buffer, issuer: Buffer, callback: Function2[|[Error, Null], Buffer, Unit]): Boolean
    Annotations
    @JSName("emit")
  25. def emit_checkContinue(event: checkContinue, req: IncomingMessage, res: ServerResponse): Boolean
    Annotations
    @JSName("emit")
  26. def emit_checkExpectation(event: checkExpectation, req: IncomingMessage, res: ServerResponse): Boolean
    Annotations
    @JSName("emit")
  27. def emit_clientError(event: clientError, err: Error, socket: Duplex): Boolean
    Annotations
    @JSName("emit")
  28. def emit_close(event: close): Boolean
    Annotations
    @JSName("emit")
  29. def emit_connect(event: connect, req: IncomingMessage, socket: Duplex, head: Buffer): Boolean
    Annotations
    @JSName("emit")
  30. def emit_connection(event: connection, socket: Duplex): Boolean
    Annotations
    @JSName("emit")
  31. def emit_error(event: error, err: Error): Boolean
    Annotations
    @JSName("emit")
  32. def emit_keylog(event: keylog, line: Buffer, tlsSocket: TLSSocket): Boolean
    Annotations
    @JSName("emit")
  33. def emit_listening(event: listening): Boolean
    Annotations
    @JSName("emit")
  34. def emit_newSession(event: newSession, sessionId: Buffer, sessionData: Buffer, callback: Function2[Error, Buffer, Unit]): Boolean
    Annotations
    @JSName("emit")
  35. def emit_request(event: request, req: IncomingMessage, res: ServerResponse): Boolean
    Annotations
    @JSName("emit")
  36. def emit_resumeSession(event: resumeSession, sessionId: Buffer, callback: Function2[Error, Buffer, Unit]): Boolean
    Annotations
    @JSName("emit")
  37. def emit_secureConnection(event: secureConnection, tlsSocket: TLSSocket): Boolean
    Annotations
    @JSName("emit")
  38. def emit_tlsClientError(event: tlsClientError, err: Error, tlsSocket: TLSSocket): Boolean
    Annotations
    @JSName("emit")
  39. def emit_upgrade(event: upgrade, req: IncomingMessage, socket: Duplex, head: Buffer): Boolean
    Annotations
    @JSName("emit")
  40. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  41. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  42. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  44. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  45. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  46. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  47. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  48. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  49. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  50. def on(event: String, listener: Function1[Any, Unit]): Server.this.type
  51. def on_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("on")
  52. def on_checkContinue(event: checkContinue, listener: RequestListener): Server.this.type
    Annotations
    @JSName("on")
  53. def on_checkExpectation(event: checkExpectation, listener: RequestListener): Server.this.type
    Annotations
    @JSName("on")
  54. def on_clientError(event: clientError, listener: Function2[Error, Duplex, Unit]): Server.this.type
    Annotations
    @JSName("on")
  55. def on_close(event: close, listener: Function0[Unit]): Server.this.type
    Annotations
    @JSName("on")
  56. def on_connect(event: connect, listener: Function3[IncomingMessage, Duplex, Buffer, Unit]): Server.this.type
    Annotations
    @JSName("on")
  57. def on_connection(event: connection, listener: Function1[Duplex, Unit]): Server.this.type
    Annotations
    @JSName("on")
  58. def on_error(event: error, listener: Function1[Error, Unit]): Server.this.type
    Annotations
    @JSName("on")
  59. def on_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("on")
  60. def on_listening(event: listening, listener: Function0[Unit]): Server.this.type
    Annotations
    @JSName("on")
  61. def on_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("on")
  62. def on_request(event: request, listener: RequestListener): Server.this.type
    Annotations
    @JSName("on")
  63. def on_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("on")
  64. def on_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("on")
  65. def on_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("on")
  66. def on_upgrade(event: upgrade, listener: Function3[IncomingMessage, Duplex, Buffer, Unit]): Server.this.type
    Annotations
    @JSName("on")
  67. def once(event: String, listener: Function1[Any, Unit]): Server.this.type
  68. def once_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("once")
  69. def once_checkContinue(event: checkContinue, listener: RequestListener): Server.this.type
    Annotations
    @JSName("once")
  70. def once_checkExpectation(event: checkExpectation, listener: RequestListener): Server.this.type
    Annotations
    @JSName("once")
  71. def once_clientError(event: clientError, listener: Function2[Error, Duplex, Unit]): Server.this.type
    Annotations
    @JSName("once")
  72. def once_close(event: close, listener: Function0[Unit]): Server.this.type
    Annotations
    @JSName("once")
  73. def once_connect(event: connect, listener: Function3[IncomingMessage, Duplex, Buffer, Unit]): Server.this.type
    Annotations
    @JSName("once")
  74. def once_connection(event: connection, listener: Function1[Duplex, Unit]): Server.this.type
    Annotations
    @JSName("once")
  75. def once_error(event: error, listener: Function1[Error, Unit]): Server.this.type
    Annotations
    @JSName("once")
  76. def once_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("once")
  77. def once_listening(event: listening, listener: Function0[Unit]): Server.this.type
    Annotations
    @JSName("once")
  78. def once_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("once")
  79. def once_request(event: request, listener: RequestListener): Server.this.type
    Annotations
    @JSName("once")
  80. def once_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("once")
  81. def once_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("once")
  82. def once_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("once")
  83. def once_upgrade(event: upgrade, listener: Function3[IncomingMessage, Duplex, Buffer, Unit]): Server.this.type
    Annotations
    @JSName("once")
  84. def prependListener(event: String, listener: Function1[Any, Unit]): Server.this.type
  85. def prependListener_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  86. def prependListener_checkContinue(event: checkContinue, listener: RequestListener): Server.this.type
    Annotations
    @JSName("prependListener")
  87. def prependListener_checkExpectation(event: checkExpectation, listener: RequestListener): Server.this.type
    Annotations
    @JSName("prependListener")
  88. def prependListener_clientError(event: clientError, listener: Function2[Error, Duplex, Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  89. def prependListener_close(event: close, listener: Function0[Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  90. def prependListener_connect(event: connect, listener: Function3[IncomingMessage, Duplex, Buffer, Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  91. def prependListener_connection(event: connection, listener: Function1[Duplex, Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  92. def prependListener_error(event: error, listener: Function1[Error, Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  93. def prependListener_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  94. def prependListener_listening(event: listening, listener: Function0[Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  95. def prependListener_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  96. def prependListener_request(event: request, listener: RequestListener): Server.this.type
    Annotations
    @JSName("prependListener")
  97. def prependListener_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  98. def prependListener_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  99. def prependListener_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  100. def prependListener_upgrade(event: upgrade, listener: Function3[IncomingMessage, Duplex, Buffer, Unit]): Server.this.type
    Annotations
    @JSName("prependListener")
  101. def prependOnceListener(event: String, listener: Function1[Any, Unit]): Server.this.type
  102. def prependOnceListener_OCSPRequest(event: OCSPRequest, listener: Function3[Buffer, Buffer, Function2[|[Error, Null], Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  103. def prependOnceListener_checkContinue(event: checkContinue, listener: RequestListener): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  104. def prependOnceListener_checkExpectation(event: checkExpectation, listener: RequestListener): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  105. def prependOnceListener_clientError(event: clientError, listener: Function2[Error, Duplex, Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  106. def prependOnceListener_close(event: close, listener: Function0[Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  107. def prependOnceListener_connect(event: connect, listener: Function3[IncomingMessage, Duplex, Buffer, Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  108. def prependOnceListener_connection(event: connection, listener: Function1[Duplex, Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  109. def prependOnceListener_error(event: error, listener: Function1[Error, Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  110. def prependOnceListener_keylog(event: keylog, listener: Function2[Buffer, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  111. def prependOnceListener_listening(event: listening, listener: Function0[Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  112. def prependOnceListener_newSession(event: newSession, listener: Function3[Buffer, Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  113. def prependOnceListener_request(event: request, listener: RequestListener): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  114. def prependOnceListener_resumeSession(event: resumeSession, listener: Function2[Buffer, Function2[Error, Buffer, Unit], Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  115. def prependOnceListener_secureConnection(event: secureConnection, listener: Function1[TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  116. def prependOnceListener_tlsClientError(event: tlsClientError, listener: Function2[Error, TLSSocket, Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  117. def prependOnceListener_upgrade(event: upgrade, listener: Function3[IncomingMessage, Duplex, Buffer, Unit]): Server.this.type
    Annotations
    @JSName("prependOnceListener")
  118. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  119. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  120. def toLocaleString(): String
    Definition Classes
    Object
  121. def toString(): String
    Definition Classes
    AnyRef → Any
  122. def valueOf(): Any
    Definition Classes
    Object
  123. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  124. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  125. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from StObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped