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

sttpbackend.package.scala Maven / Gradle / Ivy

There is a newer version: 2.7.25
Show newest version
package io.gitlab.mateuszjaje.gitlabclient

import query.{Method, Methods}

package object sttpbackend {

  implicit def convertThisProjectMethodToSttpMethod(in: Method): sttp.model.Method = {
    in match {
      case Methods.Get    => sttp.model.Method.GET
      case Methods.Post   => sttp.model.Method.POST
      case Methods.Put    => sttp.model.Method.PUT
      case Methods.Delete => sttp.model.Method.DELETE
      case _              => ???
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy