This plugin uses Plack::Request::WithEncoding to decode incoming content,
and Encode::encode() to, well, encode outgoing content after Mason has
finished with the request. It uses a little bit of dark arts to inject
Plack::Request::WithEncoding into the stack but it seems justifiable. I'd
be grateful for comments from anyone interested in using it.
https://github.com/davebaird/mason-plugin-withencoding
SYNOPSIS
In your Poet config file:
# This is important or the first (and *only* the first) request will
# not use Plack::Request::WithEncoding
server.load_modules:
- Mason::Plugin::WithEncoding
mason:
extra_plugins:
- WithEncoding
server.encoding.request: UTF-8
server.encoding.response: UTF-8
server.default_content_type: text/html; charset=UTF-8
Cheers,
Dave.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users