ProxyFeatureHandler
Assembly: ServiceStack.dll
View Source
Declaration
public class ProxyFeatureHandler : HttpAsyncTaskHandler, IHttpAsyncHandler, IHttpHandler, IServiceStackHandler
Properties
ResolveUrl
View Source
Declaration
public Func<IHttpRequest, string> ResolveUrl { get; set; }
ProxyRequestFilter
View Source
Declaration
public Action<IHttpRequest, HttpWebRequest> ProxyRequestFilter { get; set; }
ProxyResponseFilter
View Source
Declaration
public Action<IHttpResponse, HttpWebResponse> ProxyResponseFilter { get; set; }
TransformRequest
View Source
Declaration
public Func<IHttpRequest, Stream, Task<Stream>> TransformRequest { get; set; }
TransformResponse
View Source
Declaration
public Func<IHttpResponse, Stream, Task<Stream>> TransformResponse { get; set; }
IgnoreResponseHeaders
View Source
Declaration
public HashSet<string> IgnoreResponseHeaders { get; set; }
Inherited Properties
IsReusable
View Source
Declaration
public virtual bool IsReusable { get; }
RequestName
View Source
Declaration
public string RequestName { get; set; }
Methods
RunAsAsync()
View Source
Declaration
public override bool RunAsAsync()
Returns
System.Boolean
ProcessRequestAsync(IRequest, IResponse, String)
View Source
Declaration
public override Task ProcessRequestAsync(IRequest req, IResponse response, string operationName)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | response |
System.String | operationName |
ProxyRequestAsync(IHttpRequest, String)
View Source
Declaration
public virtual async Task ProxyRequestAsync(IHttpRequest httpReq, string url)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IHttpRequest | httpReq |
System.String | url |
ProxyRequestAsync(IHttpRequest, HttpWebRequest)
View Source
Declaration
public async Task ProxyRequestAsync(IHttpRequest httpReq, HttpWebRequest webReq)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IHttpRequest | httpReq |
System.Net.HttpWebRequest | webReq |
InitWebRequest(IHttpRequest, HttpWebRequest)
View Source
Declaration
public static void InitWebRequest(IHttpRequest httpReq, HttpWebRequest webReq)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IHttpRequest | httpReq |
System.Net.HttpWebRequest | webReq |
ProxyToResponse(IHttpResponse, HttpWebRequest)
View Source
Declaration
public async Task ProxyToResponse(IHttpResponse res, HttpWebRequest webReq)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IHttpResponse | res |
System.Net.HttpWebRequest | webReq |
CopyToResponse(IHttpResponse, HttpWebResponse)
View Source
Declaration
public virtual async Task CopyToResponse(IHttpResponse res, HttpWebResponse webRes)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IHttpResponse | res |
System.Net.HttpWebResponse | webRes |
Inherited Methods
CreateProcessRequestTask(IRequest, IResponse, String)
View Source
Declaration
protected virtual Task CreateProcessRequestTask(IRequest httpReq, IResponse httpRes, string operationName)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
DefaultHandledRequest(HttpListenerContext)
View Source
Declaration
protected static bool DefaultHandledRequest(HttpListenerContext context)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Net.HttpListenerContext | context |
DefaultHandledRequest(HttpContextBase)
View Source
Declaration
protected static bool DefaultHandledRequest(HttpContextBase context)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Web.HttpContextBase | context |
HandleException(IRequest, IResponse, String, Exception)
View Source
Declaration
protected async Task HandleException(IRequest httpReq, IResponse httpRes, string operationName, Exception ex)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
System.Exception | ex |
ProcessRequest(IRequest, IResponse, String)
View Source
Declaration
public virtual void ProcessRequest(IRequest httpReq, IResponse httpRes, string operationName)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
ProcessRequestAsync(IRequest, IResponse, String)
View Source
Declaration
public virtual Task ProcessRequestAsync(IRequest httpReq, IResponse httpRes, string operationName)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.String | operationName |
ProcessRequestAsync(HttpContextBase)
View Source
Declaration
public virtual Task ProcessRequestAsync(HttpContextBase context)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Web.HttpContextBase | context |
RunAsAsync()
View Source
Declaration
public virtual bool RunAsAsync()
Returns
System.Boolean
IHttpAsyncHandler.BeginProcessRequest(HttpContext, AsyncCallback, Object)
View Source
Declaration
IAsyncResult IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, object extraData)
Returns
System.IAsyncResult
Parameters
Type | Name |
---|---|
System.Web.HttpContext | context |
System.AsyncCallback | cb |
System.Object | extraData |
IHttpAsyncHandler.EndProcessRequest(IAsyncResult)
View Source
Declaration
void IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
Parameters
Type | Name |
---|---|
System.IAsyncResult | result |
IHttpHandler.ProcessRequest(HttpContext)
View Source
Declaration
void IHttpHandler.ProcessRequest(HttpContext context)
Parameters
Type | Name |
---|---|
System.Web.HttpContext | context |
Implements
System.Web.IHttpAsyncHandler
System.Web.IHttpHandler
- ServiceStack.Host.Handlers.IServiceStackHandler