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

Raw Body Content #30

Closed
zanbaldwin opened this issue Jun 26, 2015 · 4 comments
Closed

Raw Body Content #30

zanbaldwin opened this issue Jun 26, 2015 · 4 comments

Comments

@zanbaldwin
Copy link

Is there a way of accessing the raw body content of requests sent to React HTTP Server? For example, PATCH requests to an API where the content-type submitted is JSON, XML, or similar.

If not, do you think this will get implemented at some point in the near or far future? I'd try it myself but most of this is way over my head 😢

@naroga
Copy link

naroga commented Aug 10, 2015

+1

@zanderbaldwin, I have just stumped upon this very same issue. I've already made and submitted fix, and I am currently waiting for the moderators to approve.

After this is approved, you'll have to call $request->getPayload() to get the raw body content.

@naroga
Copy link

naroga commented Aug 10, 2015

@zanderbaldwin This has been fixed in today's merge of pull request #13 (b36fb25).

$request->getBody() and $request->getPost() are now available.

@cboden
Copy link
Member

cboden commented Aug 10, 2015

👍 (edit, typo!)

@cboden cboden closed this as completed Aug 10, 2015
@WyriHaximus
Copy link
Member

@cboden you got me worried for a moment there :P

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

4 participants