Sign in Join
FPDoc Onlineexperiment

TFPCustomHTTPClient.Options procedure

Member of TFPCustomHTTPClientpublicIn unit fpHTTPClient

Performs an HTTP OPTIONS request

Declaration

pascal
procedure Options(const URL: string; const Response: TStream)
procedure Options(const URL: string; Response: TStrings)
procedure Options(const URL: string; const LocalFileName: string)
function Options(const URL: string): RawByteString

Arguments

URL

The URL to send the OPTIONS request to

Response

Variable to store the response content as string

LocalFileName

Local filename to save the response to

Function result

The response content as string

Description

Performs an HTTP OPTIONS request to query the supported methods and capabilities of a server or resource.

Errors

May raise HTTP-related exceptions on connection errors or invalid responses.

See also

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