Internet Direct (Indy) Version 9.0.2 Beta
TIdHTTPProtocol.ProcessResponse
Handles the state-dependent processing of requests and responses for an HTTP client.

function ProcessResponse: TIdHTTPWhatsNext;
Description
ProcessResponse is a TIdHTTPWhatsNext function that allows the HTTP protocol handler to perform state-dependent protocol exchanges using the Request and Response properties. ProcessResponse is, in essence, the state machine used to control actions of a TIdHTTP client during connection and request/response processing.

ProcessResponse allows the protocol handler to detect and response to various conditions that include :

ProcessResponse is used when the HTTP client attempts to connect to the remote server to perform an HTTP request or receive an HTTP response. The TIdHTTPWhatsNext return value for ProcessResponse is updated often during execution of the method based on the numeric HTTP result codes or exceptions encountered during the request/response protocol exchange.