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

TFPCustomHTTPClient.Options

Performs an HTTP OPTIONS request

Declaration

Source position: fphttpclient.pp line 337

public procedure TFPCustomHTTPClient.Options(

  const URL: string;

  const Response: TStream

);

procedure TFPCustomHTTPClient.Options(

  const URL: string;

  Response: TStrings

);

procedure TFPCustomHTTPClient.Options(

  const URL: string;

  const LocalFileName: string

);

function TFPCustomHTTPClient.Options(

  const URL: string

):RawByteString;

Arguments

URL

  

The URL to send the OPTIONS request to

Response

  

Variable to store the response content as string

Arguments

URL

  

The URL to send the OPTIONS request to

Response

  

Variable to store the response content as string

Arguments

URL

  

The URL to send the OPTIONS request to

LocalFileName

  

Local filename to save the response to

Arguments

URL

  

The URL to send the OPTIONS request 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

Head

  

Performs an HTTP HEAD request


Documentation generated on: Jan 27 2026