source: TFP-WebServer/WebServer/src/UrlHandlers/SimpleRedirectHandler.cs@ 475

Last change on this file since 475 was 391, checked in by alloc, 2 years ago

Major refactoring/cleanup

File size: 323 bytes
Line 
1namespace Webserver.UrlHandlers {
2 public class SimpleRedirectHandler : AbsHandler {
3 private readonly string target;
4
5 public SimpleRedirectHandler (string _target) : base (null) {
6 target = _target;
7 }
8
9 public override void HandleRequest (RequestContext _context) {
10 _context.Response.Redirect (target);
11 }
12 }
13}
Note: See TracBrowser for help on using the repository browser.