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

PSR-7 converter #13

Closed
wants to merge 4 commits into from
Closed

PSR-7 converter #13

wants to merge 4 commits into from

Conversation

Crell
Copy link
Owner

@Crell Crell commented May 1, 2016

This adds a converter utility to convert a Problem object directly to a PSR-7 Response object.

At the moment it depends on Zend Diactoros for the Stream object support.

@Crell Crell force-pushed the psr7 branch 2 times, most recently from 0dce539 to 2ab3e5e Compare May 2, 2016 00:34
@Crell
Copy link
Owner Author

Crell commented May 2, 2016

@weierophinney There appears to be an issue with the stream. Even when writing to it, the stream's value internally is an empty string. Any suggestion what I'm doing wrong?

@moderndeveloperllc
Copy link

@Crell If you are going to use a dependency on Diactoros, might as well use Zend\Diactoros\Response\JsonResponse to compose the Psr\Http\Message\ResponseInterface-compatible object. It does all the stream writing and JSON encoding for you.

@Crell
Copy link
Owner Author

Crell commented Nov 24, 2018

Deprecated in favor of #20

@Crell Crell closed this Nov 24, 2018
@Crell Crell deleted the psr7 branch November 24, 2018 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants