object Response
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Response
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
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 apply[R, E](status: Status = Status.Ok, headers: Headers = Headers.empty, body: Body = Body.empty): Response
- 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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromHttpError(error: HttpError): Response
- def fromSocket[R](http: Handler[R, Throwable, ChannelEvent[WebSocketFrame, WebSocketFrame], Unit])(implicit trace: Trace): ZIO[R, Nothing, Response]
Creates a new response for the provided socket
- def fromSocketApp[R](app: SocketApp[R])(implicit trace: Trace): ZIO[R, Nothing, Response]
Creates a new response for the provided socket app
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def html(data: Html, status: Status = Status.Ok): Response
Creates a response with content-type set to text/html
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def json(data: CharSequence): Response
Creates a response with content-type set to application/json
- 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()
- def ok: Response
Creates an empty response with status 200
- def redirect(location: CharSequence, isPermanent: Boolean = false): Response
Creates an empty response with status 301 or 302 depending on if it's permanent or not.
- def seeOther(location: CharSequence): Response
Creates an empty response with status 303
- def status(status: Status): Response
Creates an empty response with the provided Status
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def text(text: CharSequence): Response
Creates a response with content-type set to text/plain
- 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])
- object GetApp
- object GetError
- object NettyResponse