public HttpException(HttpReply reply, string extraInfo) : base(string.Format("{0} {1}", reply.Body == null ? reply.CodeReason : reply.Body.GetPlainText(), extraInfo)) { this.Reply = reply; }
/// <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); }
public HttpException(HttpReply reply) : base(reply.Body == null ? reply.CodeReason : reply.Body.GetPlainText()) { this.Reply = reply; }