HttpResponse

harness.http.client.HttpResponse
See theHttpResponse companion object
final class HttpResponse[ResponseBody] extends ResponseOps[Any, Logger, ResponseBody]

Attributes

Companion:
object
Graph
Supertypes
trait ResponseOps[Any, Logger, ResponseBody]
class Object
trait Matchable
class Any
Self type
HttpResponse[ResponseBody]

Members list

Concise view

Value members

Concrete methods

override def bodyAsString: HRIO[Logger, String]

Attributes

Definition Classes
def contentLengthInt: HTask[Option[Int]]
def findHeader[T](header: String)(implicit decoder: StringDecoder[T]): HTask[Option[T]]
def findJsonHeader[T](header: String)(using evidence$2: JsonDecoder[T]): HTask[Option[T]]
def forwardBodyToPath(path: Path): HTask[Long]
def getContentLength: HTask[Long]
def getContentLengthInt: HTask[Int]
def getHeader[T](header: String)(implicit decoder: StringDecoder[T]): HTask[T]
def getHeaderValues(header: String): HTask[List[String]]
def getJsonHeader[T](header: String)(using evidence$1: JsonDecoder[T]): HTask[T]
def show: HRIO[Logger, String]
def showHeaders: String
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
Any

Inherited methods

final def decodedBody[T](implicit decoder: StringDecoder[T]): HRIO[GetResponseR & GetBodyR & Logger, T]

Attributes

Inherited from:
ResponseOps
final def jsonBody[T](using evidence$2: JsonDecoder[T]): HRIO[GetResponseR & GetBodyR & Logger, T]

Attributes

Inherited from:
ResponseOps
final def rawDecodedBody[T](implicit decoder: StringDecoder[T]): HRIO[GetResponseR & GetBodyR & Logger, T]

Attributes

Inherited from:
ResponseOps
final def rawJsonBody[T](using evidence$1: JsonDecoder[T]): HRIO[GetResponseR & GetBodyR & Logger, T]

Attributes

Inherited from:
ResponseOps
final def unit2xx: HRIO[GetResponseR, Unit]

Attributes

Inherited from:
ResponseOps

Concrete fields

val _rawBody: ResponseBody
val contentLength: Option[Long]
val headers: Map[String, List[String]]
val responseCode: HttpCode