tornadofx / tornadofx / HttpURLRequest

HttpURLRequest

class HttpURLRequest : Request

Constructors

<init> HttpURLRequest(engine: HttpURLEngine, seq: Long, method: Method, uri: URI, entity: Any?)

Properties

connection lateinit var connection: HttpURLConnection
engine val engine: HttpURLEngine
entity val entity: Any?
headers val headers: <ERROR CLASS>
method val method: Method
properties var properties: MutableMap<Any, Any>
seq val seq: Long
uri val uri: URI

Functions

addHeader fun addHeader(name: String, value: String): Unit
execute fun execute(): Response
getHeader fun getHeader(name: String): <ERROR CLASS>
reset fun reset(): Unit

Extension Functions

getProperty fun <T> Any.getProperty(prop: KMutableProperty1<*, T>): ObjectProperty<T>
observable fun <T : Any> Any.observable(propName: String): ObjectProperty<T>