To trigger a function when a user goes to a URL, use the HTTP Trigger.
HTTP Response only works if the function was started by a HTTP Trigger. It will stop the program execution and return an HTTP response.
The default is 200, which indicates that the request was successful. Under 'Response Type', you can choose between HTML, JSON, or File Download.
For JSON, you must select a Struct variable.
For XML, compose the XML to return in the 'Response Content' field.
For File Download, you can select a file from your account. This response will download the selected file to the user's machine.
You can pass a URL, which will allow you to redirect to a different endpoint.