Plack::Handler::Stomp::PathInfoMunger - printf-style interpolations for PATH_INFO
version 1.08
munge_path_info
my $str = munge_path_info($format_string,$server_config,$stomp_frame);
Interprets the $format_string in a printf-like way: every %{something} is replaced with a value from the $server_config or the $stomp_frame. In particular:
$format_string
printf
%{something}
$server_config
$stomp_frame
%{broker.hostname}
is replaced by the value of $server_config->{hostname}
$server_config->{hostname}
%{broker.port}
is replaced by the value of $server_config->{port}
$server_config->{port}
%{header.something}
is replaced by the value of $stomp_frame->headers->{something} (of course something in this example can be replaced by whatever string you want).
$stomp_frame->headers->{something}
something
is replaced by an empty string (i.e. it's removed).
Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>
This software is copyright (c) 2012 by Net-a-porter.com.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Plack::Handler::Stomp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Handler::Stomp
CPAN shell
perl -MCPAN -e shell install Plack::Handler::Stomp
For more information on module installation, please visit the detailed CPAN module installation guide.