Exemple #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"
     };
 }
Exemple #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);
 }