FakeHttpServerRequest

class FakeHttpServerRequest(val method: Http.Method, val uri: String, val headers: Http.Headers = Http.Headers(), val body: ByteArray = EMPTY_BYTE_ARRAY, val requestConfig: HttpServer.RequestConfig) : HttpServer.Request

Constructors

Link copied to clipboard
constructor(method: Http.Method, uri: String, headers: Http.Headers = Http.Headers(), body: ByteArray = EMPTY_BYTE_ARRAY, requestConfig: HttpServer.RequestConfig)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var extra: ExtraType
Link copied to clipboard
val finalizers: ArrayList<suspend () -> Unit>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val uri: String

Functions

Link copied to clipboard
fun addHeader(key: String, value: String)
Link copied to clipboard
open suspend override fun close()
Link copied to clipboard
suspend fun end()
suspend fun end(file: VfsFile)
suspend fun end(stream: AsyncInputStream)
suspend fun end(file: VfsFile, range: LongRange)
suspend fun end(data: String, charset: Charset = UTF8)
suspend fun end(data: ByteArray, offset: Int = 0, size: Int = data.size - offset)
Link copied to clipboard
suspend fun endHandler(handler: () -> Unit)
Link copied to clipboard
fun getHeader(key: String): String?
Link copied to clipboard
Link copied to clipboard
suspend fun handler(handler: (ByteArray) -> Unit)
Link copied to clipboard
suspend fun readRawBody(maxSize: Int = 4096): ByteArray
Link copied to clipboard
Link copied to clipboard
fun replaceHeader(key: String, value: String)
Link copied to clipboard
fun setStatus(code: Int, message: String = HttpStatusMessage(code))
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
suspend fun write(data: String, charset: Charset = UTF8)
open suspend override fun write(buffer: ByteArray, offset: Int, len: Int)
open suspend fun write(byte: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncOutputStream.write8(v: Int)
Link copied to clipboard
suspend fun AsyncOutputStream.writeBytes(data: ByteArray, position: Int, length: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncOutputStream.writeFile(source: VfsFile): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun AsyncOutputStream.writeString(string: String, charset: Charset = UTF8)
Link copied to clipboard
suspend fun AsyncOutputStream.writeStringz(str: String, charset: Charset = UTF8)
suspend fun AsyncOutputStream.writeStringz(str: String, len: Int, charset: Charset = UTF8)
Link copied to clipboard
inline suspend fun AsyncOutputStream.writeSync(hintSize: Int = 4096, callback: SyncStream.() -> Unit)
Link copied to clipboard
suspend fun AsyncOutputStream.writeTempBytes(size: Int, block: ByteArray.() -> Unit)