Sign in Join
FPDoc Onlineexperiment

TFPCustomHTTPClient.Patch procedure

Member of TFPCustomHTTPClientpublicIn unit fpHTTPClient

Performs an HTTP PATCH request

Declaration

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

Arguments

URL

The URL to send the PATCH 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 PATCH request to partially update a resource at the specified URL. The request body is taken from the RequestBody property.

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.