Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Latest commit

 

History

History
14 lines (11 loc) · 413 Bytes

File metadata and controls

14 lines (11 loc) · 413 Bytes
title Redirect Handler
description A redirect handler is used to redirect the user to a different page.

Redirect Handler

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/"));