Method

data class Method(val name: String, val requiresBody: Boolean = false)

HTTP Request Method.

Many of the common HTTP methods are provided as constants while the Method constructor can be used to create unsupported or custom methods.

Constants are provided for the common methods Options, Get, Head, Post, Put, Patch, Delete, Trace, and Connect.

Constructors

Link copied to clipboard
fun Method(name: String, requiresBody: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val requiresBody: Boolean = false