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
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
System.Object | response |
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
Type | Name | Description |
---|---|---|
ServiceStack.Web.IRequest | req | The 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
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
System.Object | response |
Implements
System.Runtime.InteropServices._Attribute
- ServiceStack.Web.IHasResponseFilterAsync
- ServiceStack.Web.IResponseFilterBase