Raw HTTP Response

16 views
Skip to first unread message

Alexey Shockov

unread,
Jun 3, 2011, 5:11:17 AM6/3/11
to aip-p...@googlegroups.com
Hello.

Is there any possibility to send raw HTTP (string with all headers included) response from application?

I'm found code

if (!is_array($result) or count($result) != 3)

in Daemonic class, and I'm afraid, that my desire is not achievable. Any workaround?

P.S. I use HTTP protocol for my application.

--
Best regards,
Alexey Shockov

mailto:ale...@shockov.com
http://alexey.shockov.com/

Alexey Zakhlestin

unread,
Jun 3, 2011, 5:15:12 AM6/3/11
to aip-p...@googlegroups.com
On Jun 3, 2011, at 1:11 PM, Alexey Shockov wrote:

Hello.

Is there any possibility to send raw HTTP (string with all headers included) response from application?

I'm found code

if (!is_array($result) or count($result) != 3)

in Daemonic class, and I'm afraid, that my desire is not achievable. Any workaround?

P.S. I use HTTP protocol for my application.

nope. you can't do that.
you'll have to put headers in array

this is the requirement, because middlewares might be editing response post-factum and they expect to receive array($status, $headers, $body) from application

Reply all
Reply to author
Forward
0 new messages