--
You received this message because you are subscribed to a topic in the Google Groups ".NET HTTP Abstractions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/net-http-abstractions/OWtGka1qJ1Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to net-http-abstrac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups ".NET HTTP Abstractions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-http-abstrac...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to net-http-abstractions+unsub...@googlegroups.com.
> MW should be allowed to throw, with outer MW catching and handling as desired.
I have a question here though and I am exactly not sure if I’m missing something here: how would the outer MW know which exception to handle? However, a MW is able to know how to handle 2**, 3**, 4**, 5** responses. In Scott’s cross-site scripting token example, I would prefer the MW to throw 400 instead of an exception. Then, my outer middleware can decide how to handle 400s.
However, I also agree that there are cases where you cannot handle that gracefully. So, that’s the actual case where a middleware would take the exception and turns it into 500 because it’s really 500.
What do u guys think?
Tugberk
To unsubscribe from this group and all its topics, send an email to net-http-abstrac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups ".NET HTTP Abstractions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-http-abstrac...@googlegroups.com.
I thought the proposal was to make throwing exceptions illegal, not catching:
> From Ali: My view is that the middlewares MUST NOT throw exceptions.
It kind of has a point where you can gracefully handle the case as it’s in Scott’s example where you can construct a 400 response. However, in cases where it’s out of your control, I’m not sure what is the right thing to do.
To unsubscribe from this group and all its topics, send an email to net-http-abstrac...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups ".NET HTTP Abstractions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-http-abstrac...@googlegroups.com.
You received this message because you are subscribed to the Google Groups ".NET HTTP Abstractions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-http-abstrac...@googlegroups.com.