Object/Trait

fm.http.server

Response

Related Docs: trait Response | package server

Permalink

object Response

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Response
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def Found(location: String): Response

    Permalink

    302

  5. def MovedPermanently(location: String): Response

    Permalink

    301

  6. def NotFound(headers: Headers = Headers.empty): Response

    Permalink

    404

  7. def NotModified(headers: Headers = Headers.empty): Response

    Permalink

    304

  8. def Ok(headers: Headers, file: RandomAccessFile): RandomAccessFileResponse

    Permalink
  9. def Ok(headers: Headers, file: File): FileResponse

    Permalink
  10. def Ok(headers: Headers, head: Future[Option[LinkedHttpContent]]): AsyncResponse

    Permalink
  11. def Ok(headers: Headers, head: LinkedHttpContent): AsyncResponse

    Permalink
  12. def Ok(head: Future[Option[LinkedHttpContent]]): AsyncResponse

    Permalink
  13. def Ok(head: LinkedHttpContent): AsyncResponse

    Permalink
  14. def Ok(headers: Headers, buf: ByteBuf): FullResponse

    Permalink
  15. def Ok(headers: Headers, body: String): FullResponse

    Permalink
  16. def Ok(body: String): FullResponse

    Permalink

    200

  17. def SeeOther(location: String): Response

    Permalink

    303

  18. def addCookie(c: Cookie)(implicit request: Request): Unit

    Permalink

    Adds a cookie to the response (via the Set-Cookie header)

    Adds a cookie to the response (via the Set-Cookie header)

    Note: If a cookie with same name already exists then it is overwritten

    c

    The Cookie to add

  19. def addHeader(name: String, value: Option[String])(implicit request: Request): Unit

    Permalink

    Add a header to the response

    Add a header to the response

    name

    The header name

    value

    The header value

  20. def addHeader(name: String, value: String)(implicit request: Request): Unit

    Permalink

    Add a header to the response

    Add a header to the response

    name

    The header name

    value

    The header value

  21. def apply(status: Status, headers: Headers, buf: ByteBuf): Response

    Permalink
  22. def apply(status: Status, headers: Headers, arr: Array[Byte], offset: Int, length: Int): Response

    Permalink
  23. def apply(status: Status, headers: Headers, arr: Array[Byte]): Response

    Permalink
  24. def apply(status: Status, headers: Headers): Response

    Permalink
  25. def apply(status: Status): Response

    Permalink
  26. def apply(status: Status, headers: Headers, body: String): Response

    Permalink
  27. def apply(status: Status, body: String, headers: Headers): Response

    Permalink
  28. def apply(status: Status, body: String): Response

    Permalink
  29. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  30. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  31. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  34. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  35. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  36. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  38. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  39. def plain(status: Status, body: String, headers: Headers): Response

    Permalink
  40. def plain(status: Status, headers: Headers, body: String): Response

    Permalink
  41. def plain(status: Status, headers: Headers): Response

    Permalink
  42. def plain(status: Status): Response

    Permalink
  43. def removeHeader(name: String)(implicit request: Request): Unit

    Permalink

    Remove a header to the response

    Remove a header to the response

    name

    The header name

  44. def saveAs(raf: RandomAccessFile, saveAsName: String, contentType: String): Response

    Permalink
  45. def saveAs(raf: RandomAccessFile, saveAsName: String): Response

    Permalink
  46. def saveAs(file: File, saveAsName: String, contentType: String): Response

    Permalink
  47. def saveAs(file: File, saveAsName: String): Response

    Permalink
  48. def saveAs(file: File): Response

    Permalink
  49. def setHeader(name: String, value: Option[String])(implicit request: Request): Unit

    Permalink

    Set/replace a header to the response

    Set/replace a header to the response

    name

    The header name

    value

    The header value

  50. def setHeader(name: String, value: String)(implicit request: Request): Unit

    Permalink

    Set/replace a header to the response

    Set/replace a header to the response

    name

    The header name

    value

    The header value

  51. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  52. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  53. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped