Skip to main content

ProxyFeature

Transparently Proxy requests through to downstream HTTP Servers

Assembly: ServiceStack.dll
View Source
Declaration
public class ProxyFeature : IPlugin, IHasStringId, IHasId<string>

Properties

Id

View Source
Declaration
public string Id { get; set; }

ProxyRequestFilter

Customize the HTTP Request Headers that are sent to downstream server

View Source
Declaration
public Action<IHttpRequest, HttpWebRequest> ProxyRequestFilter { get; set; }

ProxyResponseFilter

Customize the downstream HTTP Response Headers that are returned to client

View Source
Declaration
public Action<IHttpResponse, HttpWebResponse> ProxyResponseFilter { get; set; }

TransformRequest

Inspect or Transform the HTTP Request Body that's sent downstream

View Source
Declaration
public Func<IHttpRequest, Stream, Task<Stream>> TransformRequest { get; set; }

TransformResponse

Inspect or Transform the downstream HTTP Response Body that's returned

View Source
Declaration
public Func<IHttpResponse, Stream, Task<Stream>> TransformResponse { get; set; }

Fields

ResolveUrl

View Source
Declaration
public readonly Func<IHttpRequest, string> ResolveUrl

IgnoreResponseHeaders

View Source
Declaration
public HashSet<string> IgnoreResponseHeaders

Methods

Register(IAppHost)

View Source
Declaration
public void Register(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

Implements