Const

harness.http.client.HttpResponse$.Const
final class Const[ResponseBody] extends HttpResponse[ResponseBody]

Attributes

Graph
Supertypes
class HttpResponse[ResponseBody]
trait Builder1[Any, ResponseBody]
trait Builder2[Any, ResponseBody, Throwable]
class Object
trait Matchable
class Any
Show all
Self type
Const[ResponseBody]

Members list

Value members

Concrete methods

override def bodyAsString: RIO[Logger, String]

Attributes

Definition Classes

Inherited methods

final def contentLengthInt: Task[Option[Int]]

Attributes

Inherited from:
HttpResponse
final def encodedBody[T](using evidence$2: StringDecoder[T]): ZIO[GetResponseR & Logger, ErrorT, T]

Attributes

Inherited from:
Builder2
def findHeader[T](header: String)(implicit decoder: StringDecoder[T]): Task[Option[T]]

Attributes

Inherited from:
HttpResponse
def findJsonHeader[T](header: String)(using evidence$2: JsonDecoder[T]): Task[Option[T]]

Attributes

Inherited from:
HttpResponse
final def forwardBodyToPath(path: Path): RIO[GetResponseR, Long]

Attributes

Inherited from:
Builder2
final def getContentLength: Task[Long]

Attributes

Inherited from:
HttpResponse
final def getContentLengthInt: Task[Int]

Attributes

Inherited from:
HttpResponse
def getHeader[T](header: String)(implicit decoder: StringDecoder[T]): Task[T]

Attributes

Inherited from:
HttpResponse
def getHeaderValues(header: String): Task[List[String]]

Attributes

Inherited from:
HttpResponse
def getJsonHeader[T](header: String)(using evidence$1: JsonDecoder[T]): Task[T]

Attributes

Inherited from:
HttpResponse
final def getResponseStringBody: RIO[GetResponseR & Logger, HttpResponse[String]]

Attributes

Inherited from:
Builder2
final def jsonBody[T](using evidence$3: JsonDecoder[T]): ZIO[GetResponseR & Logger, ErrorT, T]

Attributes

Inherited from:
Builder2
def show: RIO[Logger, String]

Attributes

Inherited from:
HttpResponse
def showHeaders: String

Attributes

Inherited from:
HttpResponse
final def stringBody: ZIO[GetResponseR & Logger, ErrorT, String]

Attributes

Inherited from:
Builder2
final def toResponseStringBody: RIO[Logger, HttpResponse[String]]

Attributes

Inherited from:
HttpResponse
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
HttpResponse -> Any
Inherited from:
HttpResponse
final def unit2xx: ZIO[GetResponseR & Logger, ErrorT, Unit]

Attributes

Inherited from:
Builder2
final def withBody[ResponseBody2](body: ResponseBody2, bodyOps: BodyOps[ResponseBody2]): HttpResponse[ResponseBody2]

Attributes

Inherited from:
HttpResponse
final def withError[E](using evidence$1: ErrorCodec[E]): Builder2[GetResponseR, ResponseT, E]

Attributes

Inherited from:
Builder1

Inherited fields

final val body: ResponseBody

Attributes

Inherited from:
HttpResponse
final val contentLength: Option[Long]

Attributes

Inherited from:
HttpResponse
override protected val errorCodec: ErrorCodec[Throwable]

Attributes

Inherited from:
Builder1
final val headers: Map[String, List[String]]

Attributes

Inherited from:
HttpResponse
final val responseCode: HttpCode

Attributes

Inherited from:
HttpResponse