com.lightningkite.lightningserver.http.HttpEndpoint.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
import com.lightningkite.lightningserver.core.ServerPath
data class HttpEndpoint(val path: ServerPath, val method: HttpMethod) {
constructor(string: String, method: HttpMethod) : this(
path = ServerPath(string),
method = method
)
override fun toString(): String = "$method $path"
}