Skip to main content

ResponseFilterAttribute

Base class to create response filter attributes only for specific HTTP methods (GET, POST...)

Assembly: ServiceStack.dll
View Source
Declaration
public abstract class ResponseFilterAttribute : AttributeBase, _Attribute, IHasResponseFilter, IResponseFilterBase

Properties

Priority

View Source
Declaration
public int Priority { get; set; }

ApplyTo

View Source
Declaration
public ApplyTo ApplyTo { get; set; }

Methods

ResponseFilter(IRequest, IResponse, Object)

View Source
Declaration
public void ResponseFilter(IRequest req, IResponse res, object response)
Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.Objectresponse

Execute(IRequest, IResponse, Object)

This method is only executed if the HTTP method matches the ServiceStack.ResponseFilterAttribute.ApplyTo property.

View Source
Declaration
public abstract void Execute(IRequest req, IResponse res, object responseDto)
Parameters
TypeNameDescription
ServiceStack.Web.IRequestreqThe http request wrapper

| | ServiceStack.Web.IResponse | res | The http response wrapper

| | System.Object | responseDto | The response DTO

|

Copy()

Create a ShallowCopy of this instance.

View Source
Declaration
public virtual IResponseFilterBase Copy()
Returns

ServiceStack.Web.IResponseFilterBase

Implements