EmbedIO v2.8.0 Release Notes
Release Date: 2019-05-28 // almost 5 years ago-
🚚 Global Exception Handler was added as propose issue #300. For example, if you want to remove the default HTML error response, you can add a function to the
UnhandledException
property atIWebServer
:using (var server = new WebServer(webOptions)) { // Report to console the error onlyserver.UnhandledException = (ctx, ex, ct) => { ex.Message.Error(nameof(WebServer)); ctx.Response.StatusCode = 500; return Task.FromResult(true); }; // Continue with WebServer start up}
⏪ The MIME Types Dictionary was reverted to plain Dictionary to allow add new entries (Issue #302)