Skip to content

Script Development / Redirect DFF.REDIRECT

The return value of a function can not only return data or files but also return an HTTP redirect response.

Parameter Type Required / Default Description
url str Required Redirect URL address

Common use cases are as follows:

The redirect address must include http:// or https://

Python
1
2
3
4
5
6
@DFF.API('Use Case')
def case_1():
    '''
    Redirect to Bing
    '''
    return DFF.REDIRECT('http://bing.com')