HttpMethod.kt

  1. package com.hexagonkt.http.model

  2. /**
  3.  * Supported HTTP methods.
  4.  */
  5. enum class HttpMethod {
  6.     /** HTTP GET method. */
  7.     GET,
  8.     /** HTTP HEAD method. */
  9.     HEAD,
  10.     /** HTTP POST method. */
  11.     POST,
  12.     /** HTTP PUT method. */
  13.     PUT,
  14.     /** HTTP DELETE method. */
  15.     DELETE,
  16.     /** HTTP TRACE method. */
  17.     TRACE,
  18.     /** HTTP OPTIONS method. */
  19.     OPTIONS,
  20.     /** HTTP PATCH method. */
  21.     PATCH;

  22.     companion object {
  23.         val ALL: Set<HttpMethod> = entries.toSet()
  24.     }
  25. }