code: public void deploy(URI uri, EndpointHttpHandler endpointHttpHandler) {
          doDeploy(
                  uri,
                  servletInstance -> servletInstance.setEndpointHttpHandler(endpointHttpHandler), // plug the endpointHttpHandler into the servlet
                  deploymentInfo -> {}, // no need to customize the deploymentInfo
                  deployment -> {} // no need to customize the deployment
          );
      }
docs: Exposes an HTTP endpoint defined by the given {@link EndpointHttpHandler} under the given {@link URI}'s path.
  
  @param uri determines the path and protocol under which the HTTP endpoint should be exposed
  @param endpointHttpHandler an {@link EndpointHttpHandler} to use for handling HTTP requests sent to the given
  {@link URI}'s path