C# Class Sdl.Web.Common.Models.PageModelWithHttpResponseData

Represents the View Model for a Page with additional HTTP Response data (cookies, headers).
Inheritance: PageModel
Afficher le fichier Open project: sdl/dxa-web-application-dotnet

Méthodes publiques

Méthode Description
SetHttpResponseData ( HttpResponse httpResponse ) : void

Sets the HTTP Response data (cookies, header).

This should only be used to set HTTP headers (incl. cookies); setting the HTTP response body is a responsibility of the Page Controller. This method is called by the DXA Page Controller before rendering the body.

Méthodes protégées

Méthode Description
PageModelWithHttpResponseData ( string id ) : System.Web

Initializes a new instance of PageModelWithHttpResponseData.

Method Details

PageModelWithHttpResponseData() protected méthode

Initializes a new instance of PageModelWithHttpResponseData.
protected PageModelWithHttpResponseData ( string id ) : System.Web
id string The identifier of the Page.
Résultat System.Web

SetHttpResponseData() public abstract méthode

Sets the HTTP Response data (cookies, header).
This should only be used to set HTTP headers (incl. cookies); setting the HTTP response body is a responsibility of the Page Controller. This method is called by the DXA Page Controller before rendering the body.
public abstract SetHttpResponseData ( HttpResponse httpResponse ) : void
httpResponse System.Web.HttpResponse The HTTP Response to set the data on.
Résultat void