- Companion
- object
Type members
Types
Value members
Concrete methods
- Definition Classes
- ServletContainer
Enables HTTP/2 connection upgrade over plain text (no TLS). See https://webtide.com/introduction-to-http2-in-jetty
Enables HTTP/2 connection upgrade over plain text (no TLS). See https://webtide.com/introduction-to-http2-in-jetty
Provide a specific org.eclipse.jetty.server.HttpConfiguration.
Provide a specific org.eclipse.jetty.server.HttpConfiguration.
This can be used for direct low level control over many HTTP related configuration settings which http4s may not directly expose.
Sets the graceful shutdown timeout for Jetty. Closing the resource will wait this long before a forcible stop.
Sets the graceful shutdown timeout for Jetty. Closing the resource will wait this long before a forcible stop.
Configures the server with TLS, using the provided SSLContext
and its
default SSLParameters
Configures the server with TLS, using the provided SSLContext
and its
default SSLParameters
Configures the server with TLS, using the provided SSLContext
and its
default SSLParameters
Configures the server with TLS, using the provided SSLContext
and its
default SSLParameters
Set the org.eclipse.jetty.util.thread.ThreadPool that Jetty will use.
Set the org.eclipse.jetty.util.thread.ThreadPool that Jetty will use.
It is recommended you use JettyThreadPools#resource to build this so that it will be gracefully shutdown when/if the Jetty server is shutdown.
Deprecated methods
- Deprecated
- Deprecated
Set the org.eclipse.jetty.util.thread.ThreadPool that Jetty will use.
Set the org.eclipse.jetty.util.thread.ThreadPool that Jetty will use.
- Note
You should prefer withThreadPoolResource instead of this method. If you invoke this method the provided org.eclipse.jetty.util.thread.ThreadPool ''will not'' be joined, stopped, or destroyed when/if the Jetty server stops. This is to preserve the <= 0.21.23 semantics.
- Deprecated
[Since version 0.21.23]
Please use withThreadPoolResource instead and see JettyThreadPools.
Inherited methods
Returns an effect that allocates a backend and an F[Unit]
to
release it. The returned F
waits until the backend is ready
to process requests. The second element of the tuple shuts
down the backend when run.
Returns an effect that allocates a backend and an F[Unit]
to
release it. The returned F
waits until the backend is ready
to process requests. The second element of the tuple shuts
down the backend when run.
Unlike resource and stream, there is no automatic release of the backend. This function is intended for REPL sessions, tests, and other situations where composing a cats.effect.Resource or fs2.Stream is not tenable. resource or stream is recommended wherever possible.
- Inherited from
- BackendBuilder
Runs the server as a process that never emits. Useful for a server that runs for the rest of the JVM's life.
Runs the server as a process that never emits. Useful for a server that runs for the rest of the JVM's life.
- Inherited from
- ServerBuilder
Runs the server as a Stream that emits only when the terminated signal becomes true. Useful for servers with associated lifetime behaviors.
Runs the server as a Stream that emits only when the terminated signal becomes true. Useful for servers with associated lifetime behaviors.
- Inherited from
- ServerBuilder
Returns the backend as a single-element stream. The stream does not emit until the backend is ready to process requests. The backend is shut down when the stream is finalized.
Returns the backend as a single-element stream. The stream does not emit until the backend is ready to process requests. The backend is shut down when the stream is finalized.
- Inherited from
- BackendBuilder