Skip to content

Build response with just ServerRequestInterface object (improved PSR-7 compatibility) #307

@g105b

Description

@g105b

Currently, the Request is build in the Lifecycle, because it is expected that go.php is the entry point from a traditional web server, running PHP-FPM.

However, there is lots of room for improvement with the way PSR-7 is handled.

There should be an alternative function to start to call that is passed the PSR-7 Request object already constructed. This is how servers like React's HTTP work.

There will be no obvious benefit to the developer or the user for doing all this work (apart from the project will be more in line with PSR-7's intentions), but it will enable things like #304 to be implemented using React.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNon-breaking improvements to existing behaviour

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions