Builder2

harness.http.client.ResponseOps$.Builder2
trait Builder2[GetResponseR, ResponseT, ErrorT >: HError <: AnyHError]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Builder1[GetResponseR, ResponseT]
class HttpResponse[ResponseBody]
class Cached[ResponseBody]
class Const[ResponseBody]
Self type
Builder2[GetResponseR, ResponseT, ErrorT]

Members list

Value members

Abstract methods

protected def decodeError(response: HttpResponse[String]): ErrorT
protected def getResponse: HRIO[GetResponseR & Scope, HttpResponse[ResponseT]]

Concrete methods

def encodedBody[T](using evidence$3: StringDecoder[T]): ZIO[GetResponseR & Logger, ErrorT, T]
final def forwardBodyToPath(path: Path): HRIO[GetResponseR, Long]
final def getResponseStringBody: HRIO[GetResponseR & Logger, HttpResponse[String]]
def jsonBody[T](using evidence$4: JsonDecoder[T]): ZIO[GetResponseR & Logger, ErrorT, T]
def stringBody: ZIO[GetResponseR & Logger, ErrorT, String]
def unit2xx: ZIO[GetResponseR & Logger, ErrorT, Unit]