internal void PublishErrorPage() { const string address = ServerLauncher.ErrorAddress; var page = new PagePublished(DefaultServerError, HttpStatusCode.InternalServerError); _published.Publish(address, page); var combined = Published.CombinePathMethod(address, "POST"); _published.Publish(combined, page); }
internal override async Task <bool> ProcessRequest(HttpContext http) { var combined = Published.CombinePathMethod(http.Request.Path, http.Request.Method); if (!_app.TryGetNode(combined, out var item)) { return(false); } await item.Run(_app, http, _options); return(true); }