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

Allow to get response without headers #13101

Closed
benfavre opened this issue Sep 29, 2017 · 2 comments
Closed

Allow to get response without headers #13101

benfavre opened this issue Sep 29, 2017 · 2 comments
Assignees
Milestone

Comments

@benfavre
Copy link

benfavre commented Sep 29, 2017

Could you please wrap theses with an if statement so I can wrap the application class to emulate PSR-7
Right now I have no easy way of only getting the reponse back and handling it as i please.

https://github.com/phalcon/cphalcon/blob/master/phalcon/mvc/application.zep#L394
https://github.com/phalcon/cphalcon/blob/master/phalcon/mvc/application.zep#L395

@sergeyklay sergeyklay added this to the 3.3.x milestone Oct 2, 2017
@sergeyklay sergeyklay self-assigned this Oct 2, 2017
@stamster
Copy link
Contributor

stamster commented Oct 6, 2017

Indeed this might be useful (actually required) to integrate ReactPHP with Phalcon. So Phalcon would not send raw HTTP headers nor body but rather return entire Response object instead.

@sergeyklay
Copy link
Contributor

Implemented in the 3.3.x branch. Thank you for contributing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants