Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle and emit PSR-7 responses #1

Open
chrisvanpatten opened this issue Apr 6, 2019 · 0 comments
Open

Handle and emit PSR-7 responses #1

chrisvanpatten opened this issue Apr 6, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@chrisvanpatten
Copy link
Member

For greater consistency with other modern PHP frameworks, Kaiso should expect controllers to return PSR-7 response, and emit them to the server instead of relying on WordPress' mysterious implementation of response emitting.

Kaiso already makes a PSR-7 Request object available in controllers, and this would be a logical extension of that behaviour.

Some potential emitter libraries:

@chrisvanpatten chrisvanpatten added the enhancement New feature or request label Apr 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant