HttpClient

harness.http.client.HttpClient
See theHttpClient companion object
abstract class HttpClient extends Auto

Attributes

Companion
object
Graph
Supertypes
class Auto
trait TracedService
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

final def send[ET <: Any](inputBodySchema: BodyCodec[InputBody[ET]], outputBodySchema: BodyCodec[OutputBody[ET]], errorSchema: ErrorSchema[Error[ET]])(request: HttpRequestParams, body: Send[InputBody[ET]]): ZIO[Scope, Error[ET], Receive[OutputBody[ET]]]

Inherited methods

final def trace(params: (String, String)*): ZIOAspect[Nothing, Any, Nothing, Any, Nothing, Any]

Attributes

Inherited from:
TracedService
final def trace: ZIOAspect[Nothing, Any, Nothing, Any, Nothing, Any]

Attributes

Inherited from:
TracedService
final def traceScoped(params: (String, String)*): URIO[Scope, Unit]

Attributes

Inherited from:
TracedService
final def traceScoped: URIO[Scope, Unit]

Attributes

Inherited from:
TracedService
final def traceWith(params: (String, String)*)(withTrace: TraceElem => UIO[Unit]): ZIOAspect[Nothing, Any, Nothing, Any, Nothing, Any]

Attributes

Inherited from:
TracedService
final def traceWith(withTrace: TraceElem => UIO[Unit]): ZIOAspect[Nothing, Any, Nothing, Any, Nothing, Any]

Attributes

Inherited from:
TracedService

Inherited fields

final override protected val serviceImpl: String

In your zio service, this represents the implementation. Use TracedService.Auto to handle this automatically.

In your zio service, this represents the implementation. Use TracedService.Auto to handle this automatically.

final case class MyServiceLive() extends MyService { override protected final val serviceImpl: String = "MyServiceLive" }

Attributes

Inherited from:
Auto
final override protected val serviceName: String

In your zio service, this represents the parent trait. Use TracedService.Auto to handle this automatically.

In your zio service, this represents the parent trait. Use TracedService.Auto to handle this automatically.

trait MyService { override protected final val serviceName: String = "MyService" }

Attributes

Inherited from:
Auto