1 function handleRequest(request, response) {
2 response.setStatusLine(request.httpVersion, 301, "Moved Permanently");
3 // eslint-disable-next-line @microsoft/sdl/no-insecure-url
4 response.setHeader("Location", "http://example.org/");
5 response.write("Hello world!");