object Response

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Response
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait Patch extends AnyRef

    Models the set of operations that one would want to apply on a Response.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(status: Status = Status.Ok, headers: Headers = Headers.empty, body: Body = Body.empty): Response
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def fromHttpError(error: HttpError): Response
  10. def fromServerSentEvents(data: ZStream[Any, Nothing, ServerSentEvent]): Response

    Creates a response with content-type set to text/event-stream

    Creates a response with content-type set to text/event-stream

    data

    \- stream of data to be sent as Server Sent Events

  11. def fromSocket[R](http: Handler[R, Throwable, WebSocketChannel, Any])(implicit trace: Trace): ZIO[R, Nothing, Response]

    Creates a new response for the provided socket

  12. def fromSocketApp[R](app: SocketApp[R])(implicit trace: Trace): ZIO[R, Nothing, Response]

    Creates a new response for the provided socket app

  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def html(data: Html, status: Status = Status.Ok): Response

    Creates a response with content-type set to text/html

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def json(data: CharSequence): Response

    Creates a response with content-type set to application/json

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def ok: Response

    Creates an empty response with status 200

  22. def redirect(location: URL, isPermanent: Boolean = false): Response

    Creates an empty response with status 301 or 302 depending on if it's permanent or not.

  23. def seeOther(location: URL): Response

    Creates an empty response with status 303

  24. def status(status: Status): Response

    Creates an empty response with the provided Status

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def text(text: CharSequence): Response

    Creates a response with content-type set to text/plain

  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. object GetApp
  32. object GetError
  33. object Patch

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped