Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Serving Dynamic Content with Plack

by Haarg (Chaplain)
on Oct 25, 2011 at 08:07 UTC ( #933564=note: print w/replies, xml ) Need Help??


in reply to Serving Dynamic Content with Plack

Your last point isn't entirely correct. The Debug middleware will remove the Content-Length header if it exists, preventing any issues. Most middleware components that modify the body will use Plack::Util::response_cb to do so, and it takes care of removing the header. Having them out of order like that would still be bad though, as you would be calculating the length then immediately throwing it away.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://933564]
help
Chatterbox?
[Lady_Aleena]: marioroy, it is used in 24 other modules I wrote.
[Lady_Aleena]: GUH! I wrote a script better than I thought! 8)
[marioroy]: Wow. It's cool seeing Github coments "Update Monster.pm, Create Wild_hairs, Create alternate- PurpleOnGreen..., Then a location, Create Aleenia. Amazing, really. Thank you for sharing.
Discipulus when naming is clear and you know how to arrange the data, then coding it is a mere writing work

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-05-29 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?