Interface HttpServerBuilder


public interface HttpServerBuilder
A builder for HttpServer.
Author:
Julien Viet
  • Method Details

    • with

      Configure the server.
      Parameters:
      config - the server config
      Returns:
      a reference to this, so the API can be used fluently
    • with

      Configure the server with the given SSL options.
      Parameters:
      options - the SSL options
      Returns:
      a reference to this, so the API can be used fluently
    • with

      Configure the server with the given SSL engine.
      Parameters:
      engine - the SSL engine options
      Returns:
      a reference to this, so the API can be used fluently
    • withConnectHandler

      HttpServerBuilder withConnectHandler(Handler<HttpConnection> handler)
      Set a connection handler for the server. This handler is called when a new connection is established.
      Returns:
      a reference to this, so the API can be used fluently
    • build

      HttpServer build()
      Build and return the server.
      Returns:
      the server as configured by this builder