Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ziguzagu/plack-middleware-watermark
Add watermark to response body
https://github.com/ziguzagu/plack-middleware-watermark
cpan perl plack
Last synced: 29 days ago
JSON representation
Add watermark to response body
- Host: GitHub
- URL: https://github.com/ziguzagu/plack-middleware-watermark
- Owner: ziguzagu
- Created: 2010-08-11T15:22:58.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-10-17T14:48:16.000Z (about 14 years ago)
- Last Synced: 2024-10-15T10:17:19.187Z (2 months ago)
- Topics: cpan, perl, plack
- Language: Perl
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
Plack::Middleware::Watermark - Add watermark to response bodySYNOPSIS
use Plack::Builder;
my $app = sub {
[ 200, [ 'Content-Type' => 'text/html' ], [ "Hello World\n" ] ]
};
builder {
enable 'Watermark', comment => 'generated on my server';
$app;
}# Hello World
#DESCRIPTION
The watermark middleware offers appending some string to response body
as comment.OPTIONS
comment
Specify comment string or subroutine returning some string.builder {
enable 'Watermark', comment => sub { 'Generated by ' . Sys::Hostname::hostname };
$app;
}AUTHOR
Hiroshi SakaiCOPYRIGHT
Copyright (C) 2010 Six Apart, Ltd. All rights reserved.LICENSE
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.