source:
binary-improvements2/WebServer/src/UrlHandlers/SimpleRedirectHandler.cs@
402
Last change on this file since 402 was 391, checked in by , 2 years ago | |
---|---|
File size: 323 bytes |
Line | |
---|---|
1 | namespace 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.