Last change
on this file since 387 was 387, checked in by alloc, 2 years ago |
Big refactoring in Web to pass around a Context instead of a bunch of individual arguments all the time
|
File size:
349 bytes
|
Line | |
---|
1 | namespace AllocsFixes.NetConnections.Servers.Web.Handlers {
|
---|
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.