samedi 31 janvier 2015

How to add a request header in Nancyfx?

I tried adding this in the bootstrapper in the ApplicationStartup override.



pipelines.AfterRequest.AddItemToStartOfPipeline(ctx =>
{
ctx.Request.Headers["x-fcr-version"] = "1";
});


Its giving me errors.


Can anyone point me in the right direction?





Aucun commentaire:

Enregistrer un commentaire