Custom Asp.Net Core extensions, initially just adding Clacks middleware (http://www.gnuterrypratchett.com/).
A very simple implementation that adds a custom header in adherence to http://www.gnuterrypratchett.com/.
"A man is not dead while his name is still spoken." -- Going Postal, Chapter 4 prologue
To add the X-Clacks-Overhead header in your response reference Aschan.AspNetCore.Http
.
In Startup.Configure
, add the middleware to the service connection.
public void Configure(IApplicationBuilder app)
{
if (env.IsDevelopment())
app.UseDeveloperExceptionPage();
else
app.UseHsts();
app.UseClacks();
app.UseMvc();
}