options

fun Klopik.Companion.options(url: String, options: RequestOptions.() -> Unit = {}): Request

Creates a OPTIONS request to the specified URL.

Return

A Request object representing the HTTP request.

Parameters

url

The URL to send the request to.

options

A lambda function with the request options. This object is used to specify the body, headers and other request parameters (optional).