Wolfram Language & System 11.0 (2016)|Legacy Documentation
This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)
gives the response for the HTTP request specified by req.
- GenerateHTTPResponse effectively simulates the behavior of the Wolfram Engine cloud server.
- GenerateHTTPResponse can be used both locally on a desktop system and in the cloud. Certain operations that require extended cloud infrastructure are not supported by GenerateHTTPResponse on local desktop systems.
- The expression expr can contain any of the heads used in CloudDeploy, such as Delayed, FormFunction, etc.
- In GenerateHTTPResponse[expr,req], the request req can be an association of the form returned by HTTPRequestData or an explicit URL in the form "url" or URL["url"].
You can use an explicit HTTPResponse to set the StatusCode or the headers of the response:
Use ResponseForm to get a detailed report on the computation you've run:
Introduced in 2015