Method HttpResponse():Reset() Foundation

Discards any pending content.

:Reset() --> self



The :Reset() method discards any content previously sent using Write() or WriteStr(). By default, all content sent using these methods is collected by the HttpResponse object until the :Send() method is executed. Using :Reset(), this content can be discarded.

Note: Content sent using WriteFile() or WriteBinary() can not be discarded, as it is sent directly to the client for performance reasons.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.