Software Development

A journal for sharing all things software development related

Debug Headers in StartUp.cs Configure

Wed, 31 Jul 2019 10:17 UTC by garethbrown

public void Configure(IApplicationBuilder app, IHostingEnvironment env, IConfiguration configuration)


app.Use((context, next) =>
            foreach(var header in context.Request.Headers)
                Debug.WriteLine($"HEADER: {header.Key} {header.Value}");

            return next();

The information on this site is provided “AS IS” and without warranties of any kind either
express or implied. To the fullest extent permissible pursuant to applicable laws, the author disclaims all warranties, express or implied, including, but not limited to, implied warranties of merchantability, non-infringement and suitability for a particular purpose.

UI block loader
One moment please ...