Skip to content

QUERY is no longer supported as an argument to psgi_app() #7

@ichesnokov

Description

@ichesnokov

We cannot pass QUERY as an argument to psgi_app() anymore (after an adoption of code from markstos#17) because it will be overwritten by a new CGI::PSGI object.
There were some use cases where this was useful - e.g. when psgi_app() was used as a helper method for calling new() and run_as_psgi() on every request.

So I'd suggest to document it at least.
Documentation that shows usage of psgi_app() needs fixing as well.

As a side note, I don't completely see why QUERY parameter was chosen as a way to provide CGI::PSGI object to CGI::Application - because the more "natural" (and documented) way to do that is apparently overriding of cgiapp_get_query() method. It should be documented which of them has a precedence, if nothing else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions