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

endpoints4s.fetch.Methods.scala Maven / Gradle / Ivy

The newest version!
package endpoints4s.fetch

import endpoints4s.algebra
import org.scalajs.dom.{HttpMethod => FetchHttpMethod}

trait Methods extends algebra.Methods {
  type Method = FetchHttpMethod

  def Get: Method = FetchHttpMethod.GET

  def Post: Method = FetchHttpMethod.POST

  def Put: Method = FetchHttpMethod.PUT

  def Delete: Method = FetchHttpMethod.DELETE

  def Options: Method = FetchHttpMethod.OPTIONS

  def Patch: Method = FetchHttpMethod.PATCH
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy