コード例 #1
0
 public HttpException(HttpReply reply, string extraInfo)
     : base(string.Format("{0} {1}",
                          reply.Body == null ? reply.CodeReason : reply.Body.GetPlainText(),
                          extraInfo))
 {
     this.Reply = reply;
 }
コード例 #2
0
        /// <summary>
        /// constructor
        /// </summary>
        /// <param name="request"></param>
        /// <param name="app"></param>
        public HttpContext(Node overlayNode, HttpRequest request, WebApplication app)
        {
            this.OverlayNode = overlayNode;
            this.Request     = request;
            this.App         = app;

            Reply = new HttpReply(request);
        }
コード例 #3
0
 public HttpException(HttpReply reply)
     : base(reply.Body == null ? reply.CodeReason : reply.Body.GetPlainText())
 {
     this.Reply = reply;
 }