Web.HTTPApp.TCustomWebDispatcher.Response

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Response: TWebResponse read GetResponse;

C++

__property TWebResponse* Response = {read=GetResponse};

Properties

Type Visibility Source Unit Parent
property public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TCustomWebDispatcher

Description

Provides access to the TWebResponse object for the message the dispatcher is currently handling.

Use Response to obtain information about the emerging response to the current HTTP request message. The dispatcher matches the request object specified by the Request property to an action item. It then invokes the OnAction event handler of the action item to fill in the TWebResponse object specified by the Response property. OnAction event handlers often use descendants of TCustomContentProducer to help generate the response. These content producers can use Response to determine the state of the emerging response that is being produced.

See Also