Packages

class Bootstrap[ES <: HList, CTS <: HList] extends AnyRef

Bootstraps a Finagle HTTP service out of the collection of Finch endpoints.

val api: Service[Request, Response] = Bootstrap
 .configure(negotiateContentType = true, enableMethodNotAllowed = true)
 .serve[Application.Json](getUser :+: postUser)
 .serve[Text.Plain](healthcheck)
 .toService

Supported Configuration Options

- includeDateHeader (default: true): whether or not to include the Date header into each response (see RFC2616, section 14.18)

- includeServerHeader (default: true): whether or not to include the Server header into each response (see RFC2616, section 14.38)

- negotiateContentType (default: false): whether or not to enable server-driven content type negotiation (see RFC2616, section 12.1)

- enableMethodNotAllowed (default: false): whether or not to enable 405 MethodNotAllowed HTTP response (see RFC2616, section 10.4.6)

Self Type
Bootstrap[ES, CTS]
Source
Bootstrap.scala
See also

https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

https://www.w3.org/Protocols/rfc2616/rfc2616-sec12.html

https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Bootstrap
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Bootstrap(endpoints: ES, includeDateHeader: Boolean = true, includeServerHeader: Boolean = true, negotiateContentType: Boolean = false, enableMethodNotAllowed: Boolean = false)

Type Members

  1. class Serve[CT] extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Bootstrap[ES, CTS] to any2stringadd[Bootstrap[ES, CTS]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Bootstrap[ES, CTS], B)
    Implicit
    This member is added by an implicit conversion from Bootstrap[ES, CTS] to ArrowAssoc[Bootstrap[ES, CTS]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def configure(includeDateHeader: Boolean = self.includeDateHeader, includeServerHeader: Boolean = self.includeServerHeader, negotiateContentType: Boolean = self.negotiateContentType, enableMethodNotAllowed: Boolean = self.enableMethodNotAllowed): Bootstrap[ES, CTS]
  9. val enableMethodNotAllowed: Boolean
  10. val endpoints: ES
  11. def ensuring(cond: (Bootstrap[ES, CTS]) ⇒ Boolean, msg: ⇒ Any): Bootstrap[ES, CTS]
    Implicit
    This member is added by an implicit conversion from Bootstrap[ES, CTS] to Ensuring[Bootstrap[ES, CTS]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (Bootstrap[ES, CTS]) ⇒ Boolean): Bootstrap[ES, CTS]
    Implicit
    This member is added by an implicit conversion from Bootstrap[ES, CTS] to Ensuring[Bootstrap[ES, CTS]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): Bootstrap[ES, CTS]
    Implicit
    This member is added by an implicit conversion from Bootstrap[ES, CTS] to Ensuring[Bootstrap[ES, CTS]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): Bootstrap[ES, CTS]
    Implicit
    This member is added by an implicit conversion from Bootstrap[ES, CTS] to Ensuring[Bootstrap[ES, CTS]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Bootstrap[ES, CTS] to StringFormat[Bootstrap[ES, CTS]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. val includeDateHeader: Boolean
  22. val includeServerHeader: Boolean
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. val negotiateContentType: Boolean
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def serve[CT]: Serve[CT]
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toService(implicit ts: ToService[ES, CTS]): Service[Request, Response]
  31. final def toString(): String
    Definition Classes
    Bootstrap → AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  35. def [B](y: B): (Bootstrap[ES, CTS], B)
    Implicit
    This member is added by an implicit conversion from Bootstrap[ES, CTS] to ArrowAssoc[Bootstrap[ES, CTS]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Bootstrap[ES, CTS] to any2stringadd[Bootstrap[ES, CTS]]

Inherited by implicit conversion StringFormat from Bootstrap[ES, CTS] to StringFormat[Bootstrap[ES, CTS]]

Inherited by implicit conversion Ensuring from Bootstrap[ES, CTS] to Ensuring[Bootstrap[ES, CTS]]

Inherited by implicit conversion ArrowAssoc from Bootstrap[ES, CTS] to ArrowAssoc[Bootstrap[ES, CTS]]

Ungrouped