HolyLib Wiki

HttpRequest:MarkHandled

  HttpRequest:MarkHandled()

Description

Marks the request as handled.
The worker thread that is waiting on this request will pick this up, send the response back to the client and delete the request.

Returning any value other than false from a request handler (see HttpServer:Get and the other method functions) will call this automatically, so you usually don't need to call this yourself.
If a request handler errors out, it will also be marked as handled automatically.

Once a request was marked handled, the HttpRequest becomes invalid and must no longer be used!