Sign in Join
FPDoc Onlineexperiment

THTTPHeader.LoadFromStream function

Member of THTTPHeaderpublicIn unit HTTPDefs

Loads HTTP headers from a stream

Declaration

pascal
function LoadFromStream(Stream: TStream; IncludeCommand: Boolean)
: Integer

Arguments

Stream

Stream containing HTTP header data

IncludeCommand

Whether to include the command line in parsing

Function result

True if headers were loaded successfully

Description

LoadFromStream parses HTTP header data from a stream and populates the header fields. This method can optionally include parsing of the command line (request/status line).

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.