davybrion / Agatha

Agatha Request-Response Service Layer for .NET
http://davybrion.github.com/Agatha/
Other
86 stars 39 forks source link

Added Headers to Requests. #16

Closed whut closed 13 years ago

whut commented 13 years ago

Hi,

Here is a commit that adds Headers property to Request.

This way I can add any data (like metadata that is used by some infrastructure, not the request handler) to every request without creating derived class.

davybrion commented 13 years ago

I don't think the base Request class is the right place to add this... it has an impact on every application that currently uses Agatha, and not wanting to create your own derived request class is not a big enough reason to do so IMO

whut commented 13 years ago

So I will still have my "BaseRequest" with Headers property, no problem:)