web.redirect

web.redirect

web.redirect

Function

Set HTTP redirect address.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
urlStringYesNoneNon-empty redirect address.

Return value

TypeDescription
BoolReturns true if the setting is successful.

Example

Notes

  • redirect will set the Location response header.
  • When the status code is not set in advance, the response status code defaults to 302; 302 Found will be used in the writeback phase.