class ServerBuilder[F[_]](parser: Resource[F, TreeParser[F]], inputs: InputTreeBuilder[F], logger: Option[() => F], config: ServerConfig)(implicit evidence$1: Async[F]) extends Http4sDsl[F]
Configures and instantiates a resource for a preview server.
Any of the provided inputs which originate in the file system will be watched, and any change will trigger a new transformation. Other input types, such as those generated in memory, will require creating and launching a new server instance.
- Companion:
- object
trait Http4sDsl[F]
trait Http4sDsl2[F, F]
trait Responses[F, F]
trait Statuses
trait RequestDsl
trait Auth
trait Methods
class Object
trait Matchable
class Any
Type members
Value members
Concrete methods
Inherited fields
Alias for ->
.
Alias for ->
.
Note: Due to infix operation precedence, →
has a lower priority than /
. So you have to use parentheses in
pattern matching when using this operator.
For example:
(request.method, Path(request.path)) match {
case Method.GET → (Root / "test.json") => ...
- Inherited from:
- Http4sDsl2
Implicits
Inherited implicits
implicit def http4sNetworkAuthenticationRequiredSyntax(status: Status): NetworkAuthenticationRequiredOps[F, F]
- Inherited from:
- Responses
implicit def http4sNonAuthoritativeInformationSyntax(status: Status): NonAuthoritativeInformationOps[F, F]
- Inherited from:
- Responses
implicit def http4sProxyAuthenticationRequiredSyntax(status: Status): ProxyAuthenticationRequiredOps[F, F]
- Inherited from:
- Responses
implicit def http4sRequestHeaderFieldsTooLargeSyntax(status: Status): RequestHeaderFieldsTooLargeOps[F, F]
- Inherited from:
- Responses