object Response extends Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Response
  2. Serializable
  3. AnyRef
  4. 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def badRequest(message: String): Response
  6. def badRequest: Response
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def error(status: Error): Response
  11. def error(status: Error, message: String): Response
  12. def forbidden(message: String): Response
  13. def forbidden: Response
  14. def fromCause(cause: Cause[Any]): Response

    Creates a new response from the specified cause.

    Creates a new response from the specified cause. Note that this method is not polymorphic, but will attempt to inspect the runtime class of the failure inside the cause, if any.

  15. def fromCauseWith[E](cause: Cause[E])(f: (E) => Response): Response

    Creates a new response from the specified cause, translating any typed error to a response using the provided function.

  16. def fromServerSentEvents(data: ZStream[Any, Nothing, ServerSentEvent])(implicit trace: Trace): 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

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

    Creates a new response for the provided socket app

  18. def fromThrowable(throwable: Throwable): Response

    Creates a new response for the specified throwable.

    Creates a new response for the specified throwable. Note that this method relies on the runtime class of the throwable.

  19. def gatewayTimeout(message: String): Response
  20. def gatewayTimeout: Response
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  23. def html(data: Html, status: Status = Status.Ok): Response

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

  24. def httpVersionNotSupported(message: String): Response
  25. def httpVersionNotSupported: Response
  26. def internalServerError(message: String): Response
  27. def internalServerError: Response
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def json(data: CharSequence): Response

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

  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. def networkAuthenticationRequired(message: String): Response
  32. def networkAuthenticationRequired: Response
  33. def notExtended(message: String): Response
  34. def notExtended: Response
  35. def notFound(message: String): Response
  36. def notFound: Response
  37. def notImplemented(message: String): Response
  38. def notImplemented: Response
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  41. def ok: Response

    Creates an empty response with status 200

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

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

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

    Note: if you intend to always redirect a browser with a HTTP GET to the given location you very likely should use Response#seeOther instead.

  43. def seeOther(location: URL): Response

    Creates an empty response with status 303.

  44. def serviceUnavailable(message: String): Response
  45. def serviceUnavailable: Response
  46. def status(status: Status): Response

    Creates an empty response with the provided Status

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

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

  49. def toString(): String
    Definition Classes
    AnyRef → Any
  50. def unauthorized(message: String): Response
  51. def unauthorized: Response
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. 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 Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped