JamesRandall / FunctionMonkey

Write more elegant Azure Functions with less boilerplate, more consistency, and support for REST APIs. Docs can be found at https://functionmonkey.azurefromthetrenches.com
MIT License
294 stars 50 forks source link

Accessing request headers #173

Open umashankarsharma opened 3 years ago

umashankarsharma commented 3 years ago

I am actually a newbie in C#, but can you let me know how to access the request headers in my handler. I am using the below in my config file. Wanted to know how to access this in handler.

.DefaultHttpHeaderBindingConfiguration(new HeaderBindingConfiguration { PropertyFromHeaderMappings = new Dictionary<string, string> { { "OperationId", "x-operation-id" }