Skip to content

THTTPContentProducer

Base class for HTTP content production

Declaration

Source position: fphttp.pp line 41

type

  THTTPContentProducer = class(TComponent)
  public
    procedure HandleRequest;
    procedure GetContent;
    function HaveContent : Boolean;
    function ContentToStream : Boolean;
    property Request: TRequest; {r}
    property Response: TResponse; {r}
  end;

Description

THTTPContentProducer is the base class for generating HTTP content. It provides methods for handling requests and producing content for HTTP responses.

Properties

Member Visibility Description
Request read only public Current HTTP request
Response read only public Current HTTP response
See all Properties

Methods

Member Visibility Description
ContentToStream public Writes content to a stream
GetContent public Retrieves content for the HTTP response
HandleRequest public Handles an HTTP request
HaveContent public Checks if content is available
See all Methods