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

h4sm.testutil.infrastructure.endpoints.SessionClientDsl.scala Maven / Gradle / Ivy

package h4sm.testutil.infrastructure.endpoints

import cats.Applicative
import org.http4s._
import org.http4s.dsl.Http4sDsl
import org.http4s.client.dsl.Http4sClientDsl

trait SessionClientDsl[F[_]] { this: Http4sDsl[F] with Http4sClientDsl[F] =>
  def post[A: EntityEncoder[F, ?]](a: A, u: Uri)(implicit
      h: Headers,
      F: Applicative[F],
  ): F[Request[F]] = POST(a, u, h.toList: _*)
  def get(u: Uri)(implicit h: Headers, F: Applicative[F]): F[Request[F]] = GET(u, h.toList: _*)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy