kvision / pl.treksoft.kvision.electron / IncomingMessage

IncomingMessage

open external class IncomingMessage : EventEmitter

Constructors

<init>

IncomingMessage()

Properties

headers

open var headers: Any

httpVersion

open var httpVersion: String

httpVersionMajor

open var httpVersionMajor: Number

httpVersionMinor

open var httpVersionMinor: Number

statusCode

open var statusCode: Number

statusMessage

open var statusMessage: String

Functions

addListener

open fun addListener(event: String, listener: Function<*>): IncomingMessage
open fun addListener(event: String, listener: (<ERROR CLASS>) -> Unit): IncomingMessage
open fun addListener(event: String, listener: Function<*>): IncomingMessage
open fun addListener(event: String, listener: Function<*>): IncomingMessage

on

open fun on(event: String, listener: Function<*>): IncomingMessage
open fun on(event: String, listener: (<ERROR CLASS>) -> Unit): IncomingMessage
open fun on(event: String, listener: Function<*>): IncomingMessage
open fun on(event: String, listener: Function<*>): IncomingMessage

once

open fun once(event: String, listener: Function<*>): IncomingMessage
open fun once(event: String, listener: (<ERROR CLASS>) -> Unit): IncomingMessage
open fun once(event: String, listener: Function<*>): IncomingMessage
open fun once(event: String, listener: Function<*>): IncomingMessage

removeListener

open fun removeListener(event: String, listener: Function<*>): IncomingMessage
open fun removeListener(event: String, listener: (<ERROR CLASS>) -> Unit): IncomingMessage
open fun removeListener(event: String, listener: Function<*>): IncomingMessage
open fun removeListener(event: String, listener: Function<*>): IncomingMessage

Inherited Functions

emit

open fun emit(event: String, vararg args: Any): Boolean

eventNames

open fun eventNames(): Array<String>

getMaxListeners

open fun getMaxListeners(): Number

listenerCount

open fun listenerCount(type: String): Number

listeners

open fun listeners(event: String): Array<Function<*>>

prependListener

open fun prependListener(event: String, listener: Function<*>): EventEmitter

prependOnceListener

open fun prependOnceListener(event: String, listener: Function<*>): EventEmitter

removeAllListeners

open fun removeAllListeners(event: String? = definedExternally): EventEmitter

setMaxListeners

open fun setMaxListeners(n: Number): EventEmitter

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.