Class Express

java.lang.Object
tech.xigam.express.Express

public final class Express extends Object
A simple HTTP request handler for Java. Methods based on Express.JS
  • Field Details

  • Constructor Details

  • Method Details

    • create

      public static Express create(int port)
    • create

      public static Express create(int port, String address)
    • notFound

      public Express notFound(Consumer<Request> handler)
    • router

      public Express router(Router router)
      Set the router for this express instance.
    • listen

      public void listen() throws IOException
      Starts the HTTP server. This should be the final method called.
      Throws:
      IOException