object Response extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Response
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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, data: HttpData = HttpData.Empty): Response
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def fromHttpError(error: HttpError): Response
-
def
fromSocket[R](http: Http[R, Throwable, ChannelEvent[WebSocketFrame, WebSocketFrame], Unit]): ZIO[R, Nothing, Response]
Creates a new response for the provided socket
-
def
fromSocketApp[R](app: SocketApp[R]): ZIO[R, Nothing, Response]
Creates a new response for the provided socket app
-
final
def
getClass(): Class[_]
- 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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
-
def
http[R, E](status: Status = Status.Ok, headers: Headers = Headers.empty, data: HttpData = HttpData.empty): Response
- Annotations
- @deprecated
- Deprecated
(Since version 22-Sep-2021) Use
Response(status, headers, data)constructor instead.