Class HttpResponseExtensions
Provides extension methods for types implementing IHttpResponse.
Inherited Members
Namespace: EmbedIO
Syntax
public static class HttpResponseExtensionsMethods
DisableCaching(IHttpResponse)
Sets the necessary headers to disable caching of a response on the client side.
Declaration
public static void DisableCaching(this IHttpResponse this)Parameters
| Type | Name | Description | 
|---|---|---|
| IHttpResponse | this | The IHttpResponse interface on which this method is called. | 
SetEmptyResponse(IHttpResponse, Int32)
Prepares a standard response without a body for the specified status code.
Declaration
public static void SetEmptyResponse(this IHttpResponse this, int statusCode)Parameters
| Type | Name | Description | 
|---|---|---|
| IHttpResponse | this | The IHttpResponse interface on which this method is called. | 
| Int32 | statusCode | The HTTP status code of the response. | 
