llHTTPResponse
function ll.HTTPResponse(HTTPRequestID: string, Status: number, Body: string)Responds to an incoming HTTP request which was triggerd by an http_request event within the script. HTTPRequestID specifies the request to respond to (this ID is supplied in the http_request event handler). Status and Body specify the status code and message to respond with.
Parameters
-
HTTPRequestID(string) - A valid HTTP request key.
-
Status(number) - HTTP Status (200, 400, 404, etc.).
-
Body(string) - Contents of the response.
Examples
Section titled “Examples”Add example usage here showing SLua/Luau syntax with ll.HTTPResponse().
Add additional notes, caveats, or tips specific to using this function in SLua/Luau.
See Also
Section titled “See Also”- Related functions can be linked here
- LSL equivalent: llHTTPResponse