Skip to content

Commit

Permalink
docs: add example for custom http server options
Browse files Browse the repository at this point in the history
Signed-off-by: Akshay Patidar <akshaypatidar1999@gmail.com>
  • Loading branch information
akshaypatidar1999 committed Nov 30, 2023
1 parent a1563b2 commit 8f537eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ The `AbstractRestVerticle` here does the following:
public class RestVerticle extends AbstractRestVerticle {

public RestVerticle() {
super("com.dream11.package");
super("com.dream11.package"); // starts http server with default options
super("com.dream11.package", new HttpServerOptions().setPort(8080)); // starts http server with provided options
}

@Override
Expand Down

0 comments on commit 8f537eb

Please sign in to comment.