class
Bootstrap[F[_], ES <: HList, CTS <: HList] extends AnyRef
Instance Constructors
-
new
Bootstrap(endpoints: ES, includeDateHeader: Boolean = true, includeServerHeader: Boolean = true, enableMethodNotAllowed: Boolean = false, enableUnsupportedMediaType: Boolean = false)
Type Members
-
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
compile(implicit ts: Compile[F, ES, CTS]): Compiled[F]
-
-
val
enableMethodNotAllowed: Boolean
-
val
enableUnsupportedMediaType: Boolean
-
val
endpoints: ES
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
val
includeDateHeader: Boolean
-
val
includeServerHeader: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
serve[CT]: Serve[CT]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toService(implicit F: Effect[F], ts: Compile[F, ES, CTS]): Service[Request, Response]
-
final
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Bootstraps a Finagle HTTP service out of the collection of Finch endpoints.
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)-
enableMethodNotAllowed
(default:false
): whether or not to enable 405 MethodNotAllowed HTTP response (see RFC2616, section 10.4.6)-
enableUnsupportedMediaType
(default:false
) whether or not to enable 415 UnsupportedMediaType HTTP response (see RFC7231, section 6.5.13)https://tools.ietf.org/html/rfc7231#section-6.5.13
https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
https://www.w3.org/Protocols/rfc2616/rfc2616-sec12.html
https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html