This list shows the order in which any user-defined custom hooks are executed:
HostContext.RawHttpHandlers
are executed before anything else, i.e. returning any ASP.NET IHttpHandler
by-passes ServiceStack completely and processes your custom IHttpHandler
instead.IAppHost.CatchAllHandlers
for a matchIAppHost.PreRequestFilters
gets executed before the Request DTO is deserializedIAppHost.OnEndRequest
and any IAppHost.OnEndRequestCallbacks
are firedAny time you close the Response in any of your filters, i.e. httpRes.EndRequest()
the processing of the response is short-circuited and no further processing is done on that request.
IAppHost.OnEndRequest
is firedThe Implementation architecture diagram shows a visual cue of the internal order of operations that happens in ServiceStack:
After the IHttpHandler is returned, it gets executed with the current ASP.NET or HttpListener request wrapped in a common IHttpRequest instance.
The implementation of RestHandler shows what happens during a typical ServiceStack request:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4