Skip to content

validate res_iter before writing to lfcgi.stdout #26

@rafis

Description

@rafis

[Feature request] Add new parameter t.validate_before_output or t.one_chunk_output or t.complete_output_only, where t is second parameter of _M.run(). If the parameter set and equal to true this will run additional step of res_iter validation storing output in temporary table before actual sending output to lfcgi.stdout. After validation succeeded send stored table using table.concat(). If validation failed then call send_error().

This addition will prevent cases there half of page being outputted and then ======== WSAPI ERROR DURING RESPONSE PROCESSING:.

Or maybe this can be considered as PHP ob_start()/ob_end()/ob_flush() feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions