Sign in Join
FPDoc Onlineexperiment

TFPCustomHTTPClient.RedirectForcesGET function

Member of TFPCustomHTTPClientpublicIn unit fpHTTPClient

Checks if a redirect status code forces GET method

Declaration

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

Arguments

ACode

The HTTP redirect status code to check

Function result

True if the redirect forces GET method

Description

Static utility method that returns True if the specified redirect status code requires changing the HTTP method to GET. This applies to certain 3xx status codes that mandate method changes.

See also

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