This project is read-only.

Sending response from request processor?

Topics: Web Api
Feb 7, 2011 at 9:01 PM


I am trying to figure out, how to write a processor that sits in the request pipeline and returns a response (before the request even reaches the resource operation).

Is that possible and if so, how do I do that?



Feb 7, 2011 at 11:05 PM

So, I now found this where Glenn suggests we need to wait for channels.


Feb 7, 2011 at 11:11 PM

Not necessarily Jan. I am checking into this, I believe we did put some support on Codeplex for processors with ProcessorResult.Error. I need to confirm and will get back to you.

In terms of ideal, I agree that redirects may be better handled in the new channel stack, but it really depends on if you want to handle this as a low level http concern, of if you are working with more of you domain objects to make the determination.