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

TResponse.SendRedirect

Sends a redirect response

Declaration

Source position: httpdefs.pp line 612

public procedure TResponse.SendRedirect(

  const TargetURL: string

);

Arguments

TargetURL

  

Target URL for the redirect

Description

SendRedirect sends an HTTP redirect response to the client. This sets the appropriate status code and Location header to redirect the client to a new URL.


Documentation generated on: Jan 16 2026