send

fun send(body: Document? = definedExternally)(source)

Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.

Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.

MDN Reference


fun send(body: Blob?)(source)
fun send(body: BufferSource?)(source)
fun send(body: FormData?)(source)
fun send(body: String?)(source)