sealed trait Response extends HeaderOps[Response]
- Self Type
- Response
- Alphabetic
- By Inheritance
- Response
- HeaderOps
- HeaderChecks
- HeaderGetters
- HeaderModifier
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def body: Body
- abstract def copy(status: Status = self.status, headers: Headers = self.headers, body: Body = self.body): Response
- abstract def freeze: Response
- abstract def headers: Headers
Returns the headers
Returns the headers
- Definition Classes
- Response → HeaderGetters
- abstract def status: Status
- abstract def updateHeaders(update: (Headers) => Headers): Response
Updates the current Headers with new one, using the provided update function passed.
Updates the current Headers with new one, using the provided update function passed.
- Definition Classes
- HeaderModifier
- abstract def withServerTime: Response
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addCookie(cookie: Cookie.Response): Response
- final def addHeader(name: CharSequence, value: CharSequence): Response
- Definition Classes
- HeaderModifier
- final def addHeader(header: Header): Response
- Definition Classes
- HeaderModifier
- final def addHeaders(headers: Headers): Response
- Definition Classes
- HeaderModifier
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def collect: ZIO[Any, Throwable, Response]
Collects the potentially streaming body of the response into a single chunk.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(o: Any): Boolean
- Definition Classes
- Response → AnyRef → Any
- def frozen: Boolean
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def hasContentType(value: CharSequence): Boolean
- Definition Classes
- HeaderChecks
- final def hasFormUrlencodedContentType: Boolean
- Definition Classes
- HeaderChecks
- final def hasHeader(header: Header): Boolean
- Definition Classes
- HeaderChecks
- final def hasHeader(headerType: HeaderType): Boolean
- Definition Classes
- HeaderChecks
- final def hasHeader(name: CharSequence): Boolean
- Definition Classes
- HeaderChecks
- final def hasJsonContentType: Boolean
- Definition Classes
- HeaderChecks
- final def hasMediaType(mediaType: MediaType): Boolean
- Definition Classes
- HeaderChecks
- final def hasTextPlainContentType: Boolean
- Definition Classes
- HeaderChecks
- final def hasXhtmlXmlContentType: Boolean
- Definition Classes
- HeaderChecks
- final def hasXmlContentType: Boolean
- Definition Classes
- HeaderChecks
- lazy val hashCode: Int
- Definition Classes
- Response → AnyRef → Any
- final def header(headerType: HeaderType): Option[HeaderValue]
Gets a header or returns None if the header was not present or it could not be parsed
Gets a header or returns None if the header was not present or it could not be parsed
- Definition Classes
- HeaderGetters
- final def headerOrFail(headerType: HeaderType): Option[Either[String, HeaderValue]]
Gets a header.
Gets a header. If the header is not present, returns None. If the header could not be parsed it returns the parsing error
- Definition Classes
- HeaderGetters
- final def headers(headerType: HeaderType): Chunk[HeaderValue]
- Definition Classes
- HeaderGetters
- final def ignoreBody: ZIO[Any, Throwable, Response]
Consumes the streaming body fully and then drops it
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isWebSocket: Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def patch(p: Patch): Response
- final def rawHeader(headerType: HeaderType): Option[String]
Gets the raw unparsed header value
Gets the raw unparsed header value
- Definition Classes
- HeaderGetters
- final def rawHeader(name: CharSequence): Option[String]
Gets the raw unparsed header value
Gets the raw unparsed header value
- Definition Classes
- HeaderGetters
- final def removeHeader(name: String): Response
- Definition Classes
- HeaderModifier
- final def removeHeader(headerType: HeaderType): Response
- Definition Classes
- HeaderModifier
- final def removeHeaders(headers: Set[String]): Response
- Definition Classes
- HeaderModifier
- final def setHeaders(headers: Headers): Response
- Definition Classes
- HeaderModifier
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toHandler(implicit trace: Trace): Handler[Any, Nothing, Any, Response]
Creates an Http from a Response
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withHeader(header: Header): Response
- Definition Classes
- HeaderModifier
- final def withStatus(status: Status): Response
Sets the status of the response