HttpResponseMessage as parameter or returntype

Topics: Web Api
Nov 6, 2011 at 1:56 PM

Any specific reason why some samples have HttpResponseMessage as parameter rather a return type?

Nov 6, 2011 at 2:02 PM

There is no deep difference but it provides a bit of flexibility for cases where you want to set some HTTP response headers but still want to return an object.

Henrik