DefaultRequestBuilder

class DefaultRequestBuilder : HttpMessageBuilder

Configuration object for DefaultRequestBuilder plugin

Functions

Link copied to clipboard
fun setAttributes(block: Attributes.() -> Unit)

Sets attributes using block.

Link copied to clipboard
fun url(block: URLBuilder.() -> Unit)

Executes a block that configures the URLBuilder associated to this request.

fun url(urlString: String)
fun url(scheme: String? = null, host: String? = null, port: Int? = null, path: String? = null, block: URLBuilder.() -> Unit = {})

Sets the url using the specified scheme, host, port and path. Pass null to keep existing value in the URLBuilder.

Properties

Link copied to clipboard
val attributes: Attributes
Link copied to clipboard
open override val headers: HeadersBuilder
Link copied to clipboard
var host: String

Gets the associated URL's host.

Link copied to clipboard
var port: Int

Gets the associated URL's port.

Link copied to clipboard
val url: URLBuilder