class ServerResponse extends AnyRef
Mutable class that represents a response sent from the Server to the Client
- Source
- ServerResponse.scala
- Alphabetic
- By Inheritance
- ServerResponse
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ServerResponse()
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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contentType: String
the content type of the response
-
def
contentType_=(tp: String): Unit
sets the content type of this serverResponse
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
var
headers: Map[String, String]
headers to be sent in the response
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
output: Union[Array[Byte], InputStream]
the ouput is either an array or read directly from an input stream
-
def
output_=(io: InputStream): Unit
sets the output to an InputStream
-
def
output_=(txt: String): Unit
sets the output to text
-
def
output_=(ary: Array[Byte]): Unit
sets the output to an array of bytes
-
def
setCORSFor(request: ServerRequest): Unit
sets a CORS header matching to a request
-
def
statusCode: Int
statusCode (HTTP response code) for this message
- def statusCode_=(code: Int): Unit
-
def
statusText: String
the status text (HTTP Status Text) for this response code
- def statusText_=(txt: String): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- ServerResponse → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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()