| title | Redirect Handler |
|---|---|
| description | A redirect handler is used to redirect the user to a different page. |
The RedirectHandler redirects the user to a different page, without saving the redirect url to the history.
HttpServer server = HttpServer.create(8080);
// redirect /github to github.com
server.createContext("/github", new RedirectHandler("https://github.com/"));