Sign in Join
FPDoc Onlineexperiment

TFPCustomHTTPClient.IsRedirect function

Member of TFPCustomHTTPClientpublicIn unit fpHTTPClient

Checks if an HTTP status code indicates a redirect

Declaration

pascal
class function IsRedirect(ACode: Integer): Boolean; virtual

Arguments

ACode

The HTTP status code to check

Function result

True if the status code indicates a redirect

Description

Static utility method that returns True if the specified HTTP status code indicates a redirect (3xx codes).

See also

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