implicit final class ServerResponseExtensions extends AnyVal
Server Response Events
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ServerResponseExtensions
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ServerResponseExtensions(response: ServerResponse)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def badRequest(): Unit
- Annotations
- @inline()
- def forbidden(): Unit
- Annotations
- @inline()
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def internalServerError(): Unit
- Annotations
- @inline()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def notFound(): Unit
- Annotations
- @inline()
- def onData(handler: (Buffer) => Any): response.type
- Annotations
- @inline()
- def onFinish(handler: Function): response.type
- Annotations
- @inline()
- val response: ServerResponse
- def setContentType(contentType: String): Unit
Sets the content-type for the response
Sets the content-type for the response
- contentType
the given MIME type
- Annotations
- @inline()
- def toString(): String
- Definition Classes
- Any