abort
|
open fun abort(): Unit |
addListener
|
open fun addListener(event: String, listener: Function<*>): ClientRequest
open fun addListener(event: String, listener: Function<*>): ClientRequest
open fun addListener(event: String, listener: (Error) -> Unit): ClientRequest
open fun addListener(event: String, listener: Function<*>): ClientRequest
open fun addListener(event: String, listener: (authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): ClientRequest
open fun addListener(event: String, listener: (statusCode: Number, method: String, redirectUrl: String, responseHeaders: Any) -> Unit): ClientRequest
open fun addListener(event: String, listener: (response: IncomingMessage) -> Unit): ClientRequest |
end
|
open fun end(chunk: String? = definedExternally, encoding: String? = definedExternally, callback: Function<*>? = definedExternally): Unit
open fun end(chunk: <ERROR CLASS>? = definedExternally, encoding: String? = definedExternally, callback: Function<*>? = definedExternally): Unit
open fun end(): Unit |
followRedirect
|
open fun followRedirect(): Unit |
getHeader
|
open fun getHeader(: String): Header |
on
|
open fun on(event: String, listener: Function<*>): ClientRequest
open fun on(event: String, listener: Function<*>): ClientRequest
open fun on(event: String, listener: (Error) -> Unit): ClientRequest
open fun on(event: String, listener: Function<*>): ClientRequest
open fun on(event: String, listener: (authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): ClientRequest
open fun on(event: String, listener: (statusCode: Number, method: String, redirectUrl: String, responseHeaders: Any) -> Unit): ClientRequest
open fun on(event: String, listener: (response: IncomingMessage) -> Unit): ClientRequest |
once
|
open fun once(event: String, listener: Function<*>): ClientRequest
open fun once(event: String, listener: Function<*>): ClientRequest
open fun once(event: String, listener: (Error) -> Unit): ClientRequest
open fun once(event: String, listener: Function<*>): ClientRequest
open fun once(event: String, listener: (authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): ClientRequest
open fun once(event: String, listener: (statusCode: Number, method: String, redirectUrl: String, responseHeaders: Any) -> Unit): ClientRequest
open fun once(event: String, listener: (response: IncomingMessage) -> Unit): ClientRequest |
removeHeader
|
open fun removeHeader(: String): Unit |
removeListener
|
open fun removeListener(event: String, listener: Function<*>): ClientRequest
open fun removeListener(event: String, listener: Function<*>): ClientRequest
open fun removeListener(event: String, listener: (Error) -> Unit): ClientRequest
open fun removeListener(event: String, listener: Function<*>): ClientRequest
open fun removeListener(event: String, listener: (authInfo: AuthInfo, callback: (username: String, password: String) -> Unit) -> Unit): ClientRequest
open fun removeListener(event: String, listener: (statusCode: Number, method: String, redirectUrl: String, responseHeaders: Any) -> Unit): ClientRequest
open fun removeListener(event: String, listener: (response: IncomingMessage) -> Unit): ClientRequest |
setHeader
|
open fun setHeader(: String, : Any): Unit |
write
|
open fun write(chunk: String, encoding: String? = definedExternally, callback: Function<*>? = definedExternally): Unit
open fun write(chunk: <ERROR CLASS>, encoding: String? = definedExternally, callback: Function<*>? = definedExternally): Unit |