object Response extends Serializable
- Alphabetic
- By Inheritance
- Response
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def badRequest(message: String): Response
- def badRequest: Response
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def error(status: Error): Response
- def error(status: Error, message: String): Response
- def forbidden(message: String): Response
- def forbidden: Response
-
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.
-
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.
-
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
-
def
fromSocketApp[R](app: WebSocketApp[R])(implicit trace: Trace): ZIO[R, Nothing, Response]
Creates a new response for the provided socket app
-
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.
- def gatewayTimeout(message: String): Response
- def gatewayTimeout: Response
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
html(data: Html, status: Status = Status.Ok): Response
Creates a response with content-type set to text/html
- def httpVersionNotSupported(message: String): Response
- def httpVersionNotSupported: Response
- def internalServerError(message: String): Response
- def internalServerError: Response
-
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
- def networkAuthenticationRequired(message: String): Response
- def networkAuthenticationRequired: Response
- def notExtended(message: String): Response
- def notExtended: Response
- def notFound(message: String): Response
- def notFound: Response
- def notImplemented(message: String): Response
- def notImplemented: Response
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
ok: Response
Creates an empty response with status 200
-
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#seeOtherinstead. -
def
seeOther(location: URL): Response
Creates an empty response with status 303.
- def serviceUnavailable(message: String): Response
- def serviceUnavailable: Response
-
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
- def unauthorized(message: String): Response
- def unauthorized: Response
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object Patch