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

TFPCustomHTTPClient.SimpleOptions

Static method to perform a simple HTTP OPTIONS request

Declaration

Source position: fphttpclient.pp line 342

public class procedure TFPCustomHTTPClient.SimpleOptions(

  const URL: string;

  const Response: TStream

);

class procedure TFPCustomHTTPClient.SimpleOptions(

  const URL: string;

  Response: TStrings

);

class procedure TFPCustomHTTPClient.SimpleOptions(

  const URL: string;

  const LocalFileName: string

);

class function TFPCustomHTTPClient.SimpleOptions(

  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

Static utility method for performing a simple HTTP OPTIONS request without requiring an HTTP client instance.

Errors

May raise HTTP-related exceptions on connection errors.

See also

Options

  

Performs an HTTP OPTIONS request


Documentation generated on: Jan 27 2026