Skip to main content

CompressResponseAttribute

Assembly: ServiceStack.dll
View Source
Declaration
public class CompressResponseAttribute : ResponseFilterAsyncAttribute, _Attribute, IHasResponseFilterAsync, IResponseFilterBase

Inherited Properties

ApplyTo

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

Priority

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

Methods

ExecuteAsync(IRequest, IResponse, Object)

View Source
Declaration
public override async Task ExecuteAsync(IRequest req, IResponse res, object response)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.Objectresponse

Inherited Methods

Copy()

Create a ShallowCopy of this instance.

View Source
Declaration
public virtual IResponseFilterBase Copy()
Returns

ServiceStack.Web.IResponseFilterBase

ExecuteAsync(IRequest, IResponse, Object)

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

View Source
Declaration
public abstract Task ExecuteAsync(IRequest req, IResponse res, object responseDto)
Returns

System.Threading.Tasks.Task

Parameters
TypeNameDescription
ServiceStack.Web.IRequestreqThe http request wrapper

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

| | System.Object | responseDto | The response DTO

|

ResponseFilterAsync(IRequest, IResponse, Object)

View Source
Declaration
public Task ResponseFilterAsync(IRequest req, IResponse res, object response)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.Objectresponse

Implements