Skip to content

aschan/AspNetCoreExtensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asp.Net Core extensions

Custom Asp.Net Core extensions, initially just adding Clacks middleware (http://www.gnuterrypratchett.com/).

Clacks middleware

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

Package

To add the X-Clacks-Overhead header in your response reference Aschan.AspNetCore.Http.

Configure

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();
}

About

Custom Asp.Net Core extensions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages