RequestResponseBuilder

Builds an HTTP request or response

Builds an HTTP request or response

Builds an HTTP request or response

Builds an HTTP request or response

Constructors

Link copied to clipboard
expect constructor()
actual constructor()
actual constructor()
actual constructor()

Functions

Link copied to clipboard
expect fun build(): Source

Build a packet of request/response

actual fun build(): Source

Build a packet of request/response

actual fun build(): Source

Build a packet of request/response

actual fun build(): Source

Build a packet of request/response

Link copied to clipboard
expect fun bytes(content: ByteArray, offset: Int = 0, length: Int = content.size)

Append raw bytes

actual fun bytes(content: ByteArray, offset: Int, length: Int)

Append raw bytes

fun bytes(content: ByteBuffer)
actual fun bytes(content: ByteArray, offset: Int, length: Int)

Append raw bytes

actual fun bytes(content: ByteArray, offset: Int, length: Int)

Append raw bytes

Link copied to clipboard
expect fun emptyLine()

Append an empty line (CR + LF in fact)

actual fun emptyLine()

Append an empty line (CR + LF in fact)

actual fun emptyLine()

Append an empty line (CR + LF in fact)

actual fun emptyLine()

Append an empty line (CR + LF in fact)

Link copied to clipboard
expect fun headerLine(name: CharSequence, value: CharSequence)

Append header line

actual fun headerLine(name: CharSequence, value: CharSequence)

Append header line

actual fun headerLine(name: CharSequence, value: CharSequence)

Append header line

actual fun headerLine(name: CharSequence, value: CharSequence)

Append header line

Link copied to clipboard
expect fun line(line: CharSequence)

Append a line

actual fun line(line: CharSequence)

Append a line

actual fun line(line: CharSequence)

Append a line

actual fun line(line: CharSequence)

Append a line

Link copied to clipboard
expect fun release()

Release all resources hold by the builder

actual fun release()

Release all resources hold by the builder

actual fun release()

Release all resources hold by the builder

actual fun release()

Release all resources hold by the builder

Link copied to clipboard
expect fun requestLine(method: HttpMethod, uri: CharSequence, version: CharSequence)

Append request line

actual fun requestLine(method: HttpMethod, uri: CharSequence, version: CharSequence)

Append request line

actual fun requestLine(method: HttpMethod, uri: CharSequence, version: CharSequence)

Append request line

actual fun requestLine(method: HttpMethod, uri: CharSequence, version: CharSequence)

Append request line

Link copied to clipboard
expect fun responseLine(version: CharSequence, status: Int, statusText: CharSequence)

Append response status line

actual fun responseLine(version: CharSequence, status: Int, statusText: CharSequence)

Append response status line

actual fun responseLine(version: CharSequence, status: Int, statusText: CharSequence)

Append response status line

actual fun responseLine(version: CharSequence, status: Int, statusText: CharSequence)

Append response status line