class
Bootstrap[ES <: HList, CTS <: HList] extends AnyRef
Instance Constructors
-
new
Bootstrap(endpoints: ES, includeDateHeader: Boolean = true, includeServerHeader: Boolean = true, negotiateContentType: Boolean = false, enableMethodNotAllowed: 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
-
-
val
enableMethodNotAllowed: 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
-
-
val
negotiateContentType: Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
serve[CT]: Serve[CT]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
-
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)-
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)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