HttpMethod

data class HttpMethod

Represents an HTTP method (verb)

Constructors

<init>

HttpMethod(value: String)

Represents an HTTP method (verb)

Properties

value

val value: String

contains method name

Companion Object Properties

DefaultMethods

val DefaultMethods: List<HttpMethod>

A list of default HTTP methods

Delete

val Delete: HttpMethod

Get

val Get: HttpMethod

Head

val Head: HttpMethod

Options

val Options: HttpMethod

Patch

val Patch: HttpMethod

Post

val Post: HttpMethod

Put

val Put: HttpMethod

Companion Object Functions

parse

fun parse(method: String): HttpMethod

Parse HTTP method by method string