# Type TGetPostRequestEvent

## Declaration

TGetPostRequestEvent = procedure(Sender: TObject; IsGet: boolean;

const URL, Query: string; Reload: boolean;

var NewURL: string; var DocType: ThtmlFileType;

var Stream: TMemoryStream) of Object;

## Description

The TGetPostRequestEvent type is the type for the OnGetPostRequest event. This event allows a handler to respond with a document or image in stream form when a request is made for a new document. The parameters are:

IsGetSet if the request is a Get (as opposed to Post) request.

URLThe URL defining the request. This is a full URL and includes the protocol.

QueryA possible query string.

ReloadSet if a cached copy is not to be used.

NewURLThis value is returned if the document had been relocated. This allows further requests to be made to the correct location.

DocTypeThe type of item found, HTMLType, TextType, or ImgType.

StreamThe requested item in stream form.

See also:

OnGetPostRequest Event