HttpHandlerFactory
Assembly: ServiceStack.dll
View Source
Declaration
public class HttpHandlerFactory : IHttpHandlerFactory
Fields
WebHostPhysicalPath
View Source
Declaration
public static string WebHostPhysicalPath
DefaultRootFileName
View Source
Declaration
public static string DefaultRootFileName
DefaultHttpHandler
View Source
Declaration
public static IHttpHandler DefaultHttpHandler
NonRootModeDefaultHttpHandler
View Source
Declaration
public static RedirectHttpHandler NonRootModeDefaultHttpHandler
ForbiddenHttpHandler
View Source
Declaration
public static IHttpHandler ForbiddenHttpHandler
NotFoundHttpHandler
View Source
Declaration
public static IHttpHandler NotFoundHttpHandler
StaticFilesHandler
View Source
Declaration
public static IHttpHandler StaticFilesHandler
DebugLastHandlerArgs
View Source
Declaration
[ThreadStatic]
public static string DebugLastHandlerArgs
Methods
InitHandler(IHttpHandler, IHttpRequest)
View Source
Declaration
public static IHttpHandler InitHandler(IHttpHandler handler, IHttpRequest httpReq)
Returns
System.Web.IHttpHandler
Parameters
Type | Name |
---|---|
System.Web.IHttpHandler | handler |
ServiceStack.Web.IHttpRequest | httpReq |
GetHandler(HttpContext, String, String, String)
View Source
Declaration
public IHttpHandler GetHandler(HttpContext ctx, string requestType, string url, string pathTranslated)
Returns
System.Web.IHttpHandler
Parameters
Type | Name |
---|---|
System.Web.HttpContext | ctx |
System.String | requestType |
System.String | url |
System.String | pathTranslated |
GetHandler(IHttpRequest)
View Source
Declaration
public static IHttpHandler GetHandler(IHttpRequest httpReq)
Returns
System.Web.IHttpHandler
Parameters
Type | Name |
---|---|
ServiceStack.Web.IHttpRequest | httpReq |
ShouldAllow(String)
View Source
Declaration
public static bool ShouldAllow(string pathInfo)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | pathInfo |
GetHandlerForPathInfo(IHttpRequest, String)
View Source
Declaration
public static IHttpHandler GetHandlerForPathInfo(IHttpRequest httpReq, string filePath)
Returns
System.Web.IHttpHandler
Parameters
Type | Name |
---|---|
ServiceStack.Web.IHttpRequest | httpReq |
System.String | filePath |
ReleaseHandler(IHttpHandler)
View Source
Declaration
public void ReleaseHandler(IHttpHandler handler)
Parameters
Type | Name |
---|---|
System.Web.IHttpHandler | handler |
Implements
System.Web.IHttpHandlerFactory