Skip to content

Commit f4f39f2

Browse files
Merge pull request http4s#1775 from ChristopherDavenport/blazeBuilderDocs0.18
Adding Scaladoc for BlazeBuilder
2 parents 6d1f8b0 + 05b77c1 commit f4f39f2

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

blaze-server/src/main/scala/org/http4s/server/blaze/BlazeBuilder.scala

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,35 @@ import scala.collection.immutable
2222
import scala.concurrent.{ExecutionContext, Future}
2323
import scala.concurrent.duration._
2424

25+
/**
26+
* BlazeBuilder is the component for the builder pattern aggregating
27+
* different components to finally serve requests.
28+
*
29+
* Variables:
30+
* @param socketAddress: Socket Address the server will be mounted at
31+
* @param executionContext: Execution Context the underlying blaze futures
32+
* will be executed upon.
33+
* @param idleTimeout: Period of Time a connection can remain idle before the
34+
* connection is timed out and disconnected.
35+
* Duration.Inf disables this feature.
36+
* @param isNio2: Whether or not to use NIO2 or NIO1 Socket Server Group
37+
* @param connectorPoolSize: Number of worker threads for the new Socket Server Group
38+
* @param bufferSize: Buffer size to use for IO operations
39+
* @param enableWebsockets: Enables Websocket Support
40+
* @param sslBits: If defined enables secure communication to the server using the
41+
* sslContext
42+
* @param isHttp2Enabled: Whether or not to enable Http2 Server Features
43+
* @param maxRequestLineLength: Maximum request line to parse
44+
* If exceeded returns a 400 Bad Request.
45+
* @param maxHeadersLen: Maximum data that composes the headers.
46+
* If exceeded returns a 400 Bad Request.
47+
* @param serviceMounts: The services that are mounted on this server to serve.
48+
* These services get assembled into a Router with the longer prefix winning.
49+
* @param serviceErrorHandler: The last resort to recover and generate a response
50+
* this is necessary to recover totality from the error condition.
51+
* @param banner: Pretty log to display on server start. An empty sequence
52+
* such as Nil disables this
53+
*/
2554
class BlazeBuilder[F[_]](
2655
socketAddress: InetSocketAddress,
2756
executionContext: ExecutionContext,

0 commit comments

Comments
 (0)