Unit 'HTTPDefs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

THTTPHeader.LoadFromStream

Loads HTTP headers from a stream

Declaration

Source position: httpdefs.pp line 399

public function THTTPHeader.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).


Documentation generated on: Jan 16 2026