Ejemplo n.º 1
0
        internal Response(Server server, Request request, Stream stream) {
            this.server = server;
            this.request = request;
            this.stream = stream;
            bodyStream = new StreamAsNeeded(this);

            headers = DefaultHeaders();
        }
Ejemplo n.º 2
0
 public ErrorPage(Server server, Request request, Exception e) {
     if (e == null)
         e = new NullReferenceException("Error page passed a null exception");
     this.exception = e;
     this.httpException = (e is HttpException) ? (HttpException)e : new HttpException(e);
     this.server = server;
     this.request = request;
 }