All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hexagonkt.http.model.HttpMethod.kt Maven / Gradle / Ivy

Go to download

HTTP classes. These classes are shared among the HTTP client and the HTTP server.

The newest version!
package com.hexagonkt.http.model

/**
 * Supported HTTP methods.
 */
enum class HttpMethod {
    /** HTTP GET method. */
    GET,
    /** HTTP HEAD method. */
    HEAD,
    /** HTTP POST method. */
    POST,
    /** HTTP PUT method. */
    PUT,
    /** HTTP DELETE method. */
    DELETE,
    /** HTTP TRACE method. */
    TRACE,
    /** HTTP OPTIONS method. */
    OPTIONS,
    /** HTTP PATCH method. */
    PATCH;

    companion object {
        val ALL: Set = entries.toSet()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy