ZClientAspect

zio.http.ZClientAspect
See theZClientAspect companion trait
object ZClientAspect

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object CurlLogger

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
CurlLogger.type

Value members

Concrete methods

final def curlLogger(verbose: Boolean = ..., logEffect: String => UIO[Unit] = ...): ZClientAspect[Nothing, Any, Nothing, Body, Throwable, Throwable, Nothing, Response]

Client aspect that logs details of web request as curl command

Client aspect that logs details of web request as curl command

Attributes

final def debug(implicit trace: Trace): ZClientAspect[Nothing, Any, Nothing, Body, Nothing, Any, Nothing, Response]

Client aspect that logs a debug message to the console after each request

Client aspect that logs a debug message to the console after each request

Attributes

final def debug(extraMessage: PartialFunction[Response, String])(implicit trace: Trace): ZClientAspect[Nothing, Any, Nothing, Body, Nothing, Any, Nothing, Response]

Client aspect that logs a debug message to the console after each request

Client aspect that logs a debug message to the console after each request

Attributes

final def followRedirects[R, E](max: Int)(onRedirectError: (Response, String) => ZIO[R, E, Response])(implicit trace: Trace): ZClientAspect[Nothing, R, Nothing, Body, E, Any, Nothing, Response]
final def forwardHeaders: ZClientAspect[Nothing, Any, Nothing, Body, Nothing, Any, Nothing, Response]
final def requestLogging(level: Status => LogLevel = ..., failureLevel: LogLevel = ..., loggedRequestHeaders: Set[HeaderType] = ..., loggedResponseHeaders: Set[HeaderType] = ..., logRequestBody: Boolean = ..., logResponseBody: Boolean = ..., requestCharset: Charset = ..., responseCharset: Charset = ...)(implicit trace: Trace): ZClientAspect[Nothing, Any, Nothing, Body, Nothing, Any, Nothing, Response]

Client aspect that logs details of each request and response

Client aspect that logs details of each request and response

Attributes