Http4sClient

soidc.http4s.client.Http4sClient
See theHttp4sClient companion object
final class Http4sClient[F[_]](client: Client[F])(using evidence$1: Sync[F]) extends HttpClient[F], Http4sClientDsl[F], ByteEntityDecoder

Attributes

Companion
object
Graph
Supertypes
trait Http4sClientDsl[F]
trait HttpClient[F]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def get[A](url: Uri, bearerToken: Option[String])(using ByteDecoder[A]): F[A]
def getDeviceCode(url: Uri, body: DeviceCodeRequest)(using ByteDecoder[DeviceCodeResponse]): F[DeviceCodeResponse]
def getToken(url: Uri, body: TokenRequest)(using ByteDecoder[TokenResponse]): F[TokenResponse]

Inherited methods

def decodeFrom[F[_] : Sync, A : ByteDecoder](ct: MediaType): EntityDecoder[F, A]

Attributes

Inherited from:
ByteEntityDecoder

Givens

Inherited givens

given given_EntityDecoder_F_A[F[_] : Sync, A](using evidence$1: Sync[F], ByteDecoder[A]): EntityDecoder[F, A]

Attributes

Inherited from:
ByteEntityDecoder

Extensions

Extensions

extension (self: Request[F])
def withAuthorizationHeader(header: Option[Authorization]): Request[F]
def withBasicAuth(cred: Option[BasicCredentials]): Request[F]
def withBearer(token: Option[String]): Request[F]

Implicits

Inherited implicits

implicit def http4sClientSyntaxMethod(method: Method): MethodOps[F]

Attributes

Inherited from:
Http4sClientDsl
implicit def http4sHeadersDecoder[T](implicit F: Applicative[F], decoder: EntityDecoder[F, T]): EntityDecoder[F, (Headers, T)]

Attributes

Inherited from:
Http4sClientDsl