Exemplo n.º 1
0
 /// <summary>
 /// Class XtrmAddons Net Http Web Server Request Route Constructor
 /// </summary>
 /// <param name="uri"></param>
 public WebServerRequestRoute(WebServerRequestUrl uri)
 {
     Uri      = uri;
     Response = new WebServerResponseData(Uri.RelativeUrl)
     {
         ContentType = "text/html"
     };
 }
Exemplo n.º 2
0
 /// <summary>
 /// Class XtrmAddons Net Http Web Server Request Constructor.
 /// </summary>
 /// <param name="connection">The Http listerner context (named also connection).</param>
 public WebServerRequest(HttpListenerContext connection)
 {
     httpListener = connection;
     Uri          = new WebServerRequestUrl(connection);
 }