Rev | Line | |
---|
[391] | 1 | using SpaceWizards.HttpListener;
|
---|
| 2 |
|
---|
| 3 | namespace Webserver {
|
---|
| 4 | public class RequestContext {
|
---|
| 5 | public string RequestPath;
|
---|
| 6 | public readonly HttpListenerRequest Request;
|
---|
| 7 | public readonly HttpListenerResponse Response;
|
---|
| 8 | public readonly WebConnection Connection;
|
---|
| 9 | public readonly int PermissionLevel;
|
---|
| 10 |
|
---|
| 11 | public RequestContext (string _requestPath, HttpListenerRequest _request, HttpListenerResponse _response, WebConnection _connection, int _permissionLevel) {
|
---|
| 12 | RequestPath = _requestPath;
|
---|
| 13 | Request = _request;
|
---|
| 14 | Response = _response;
|
---|
| 15 | Connection = _connection;
|
---|
| 16 | PermissionLevel = _permissionLevel;
|
---|
| 17 | }
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.