Attributes
Members list
Type members
Classlikes
Models the set of operations that one would want to apply on a Response.
Models the set of operations that one would want to apply on a Response.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AddHeadersclass Combineobject Emptyclass RemoveHeadersclass SetStatusclass UpdateHeadersShow all
- Self type
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
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.
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.
Attributes
Creates a new response from the specified cause, translating any typed error to a response using the provided function.
Creates a new response from the specified cause, translating any typed error to a response using the provided function.
Attributes
Creates a response with content-type set to text/event-stream
Creates a response with content-type set to text/event-stream
Value parameters
- data
-
- stream of data to be sent as Server Sent Events
Attributes
Creates a new response for the provided socket app
Creates a new response for the provided socket app
Attributes
Creates a new response for the specified throwable. Note that this method relies on the runtime class of the throwable.
Creates a new response for the specified throwable. Note that this method relies on the runtime class of the throwable.
Attributes
Creates a response with content-type set to text/html
Creates a response with content-type set to text/html
Attributes
Creates a response with content-type set to application/json
Creates a response with content-type set to application/json
Attributes
Creates an empty response with status 200
Creates an empty response with status 200
Attributes
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.
Attributes
Creates an empty response with status 303.
Creates an empty response with status 303.
Attributes
Creates an empty response with the provided Status
Creates an empty response with the provided Status
Attributes
Creates a response with content-type set to text/plain
Creates a response with content-type set to text/plain