com.lightningkite.lightningserver.http.HttpMethod.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-core Show documentation
Show all versions of server-core Show documentation
A set of tools to fill in/replace what Ktor is lacking in.
The newest version!
package com.lightningkite.lightningserver.http
@JvmInline
value class HttpMethod(private val asString: String) {
companion object {
val GET = HttpMethod("GET")
val POST = HttpMethod("POST")
val PUT = HttpMethod("PUT")
val PATCH = HttpMethod("PATCH")
val DELETE = HttpMethod("DELETE")
val OPTIONS = HttpMethod("OPTIONS")
val HEAD = HttpMethod("HEAD")
}
override fun toString(): String = asString
}