bump copyright
[catagits/Web-Simple.git] / lib / Web / Simple.pm
CommitLineData
5c33dda5 1package Web::Simple;
2
8bd060f4 3use strictures 1;
8c4ffad3 4use 5.008;
8bd060f4 5use warnings::illegalproto ();
876e62e1 6use Moo ();
7use Web::Dispatch::Wrapper ();
8c4ffad3 8
b408a701 9our $VERSION = '0.011';
5c33dda5 10
44db8e76 11sub import {
5c33dda5 12 my ($class, $app_package) = @_;
876e62e1 13 $app_package ||= caller;
14 $class->_export_into($app_package);
15 eval "package $app_package; use Web::Dispatch::Wrapper; use Moo; 1"
16 or die "Failed to setup app package: $@";
445b3ea0 17 strictures->import;
8bd060f4 18 warnings::illegalproto->unimport;
5c33dda5 19}
20
21sub _export_into {
22 my ($class, $app_package) = @_;
23 {
24 no strict 'refs';
c7b1c57f 25 *{"${app_package}::PSGI_ENV"} = sub () { -1 };
5c33dda5 26 require Web::Simple::Application;
27 unshift(@{"${app_package}::ISA"}, 'Web::Simple::Application');
28 }
b7063124 29 (my $name = $app_package) =~ s/::/\//g;
30 $INC{"${name}.pm"} = 'Set by "use Web::Simple;" invocation';
5c33dda5 31}
32
7401408e 33=head1 NAME
34
35Web::Simple - A quick and easy way to build simple web applications
36
7401408e 37
38=head1 SYNOPSIS
39
05ad188d 40 #!/usr/bin/env perl
7401408e 41
4f83bde7 42 package HelloWorld;
43 use Web::Simple
44
45 sub dispatch_request {
46 sub (GET) {
47 [ 200, [ 'Content-type', 'text/plain' ], [ 'Hello world!' ] ]
48 },
49 sub () {
50 [ 405, [ 'Content-type', 'text/plain' ], [ 'Method not allowed' ] ]
445b3ea0 51 }
7401408e 52 }
53
54 HelloWorld->run_if_script;
55
05ad188d 56If you save this file into your cgi-bin as C<hello-world.cgi> and then visit:
7401408e 57
58 http://my.server.name/cgi-bin/hello-world.cgi/
59
4f83bde7 60you'll get the "Hello world!" string output to your browser. At the same time
61this file will also act as a class module, so you can save it as HelloWorld.pm
62and use it as-is in test scripts or other deployment mechanisms.
63
ca30a017 64Note that you should retain the ->run_if_script even if your app is a
65module, since this additionally makes it valid as a .psgi file, which can
66be extremely useful during development.
67
4f83bde7 68For more complex examples and non-CGI deployment, see
69L<Web::Simple::Deployment>. To get help with L<Web::Simple>, please connect to
70the irc.perl.org IRC network and join #web-simple.
7401408e 71
fb771406 72=head1 DESCRIPTION
7401408e 73
6a4808bf 74The philosophy of L<Web::Simple> is to keep to an absolute bare minimum for
7401408e 75everything. It is not designed to be used for large scale applications;
76the L<Catalyst> web framework already works very nicely for that and is
77a far more mature, well supported piece of software.
78
79However, if you have an application that only does a couple of things, and
3895385d 80want to not have to think about complexities of deployment, then L<Web::Simple>
7401408e 81might be just the thing for you.
82
6a4808bf 83The only public interface the L<Web::Simple> module itself provides is an
84C<import> based one:
7401408e 85
86 use Web::Simple 'NameOfApplication';
87
6a4808bf 88This sets up your package (in this case "NameOfApplication" is your package)
3895385d 89so that it inherits from L<Web::Simple::Application> and imports L<strictures>,
38d5b336 90as well as installs a C<PSGI_ENV> constant for convenience, as well as some
3895385d 91other subroutines.
92
6a4808bf 93Importing L<strictures> will automatically make your code use the C<strict> and
3895385d 94C<warnings> pragma, so you can skip the usual:
7401408e 95
96 use strict;
3895385d 97 use warnings FATAL => 'aa';
7401408e 98
99provided you 'use Web::Simple' at the top of the file. Note that we turn
100on *fatal* warnings so if you have any warnings at any point from the file
101that you did 'use Web::Simple' in, then your application will die. This is,
102so far, considered a feature.
103
a5006b25 104When we inherit from L<Web::Simple::Application> we also use L<Moo>, which is
3895385d 105the the equivalent of:
7401408e 106
107 {
108 package NameOfApplication;
445b3ea0 109 use Moo;
110 extends 'Web::Simple::Application';
7401408e 111 }
112
6a4808bf 113So you can use L<Moo> features in your application, such as creating attributes
114using the C<has> subroutine, etc. Please see the documentation for L<Moo> for
115more information.
116
445b3ea0 117It also exports the following subroutines for use in dispatchers:
7401408e 118
74afe4b7 119 response_filter { ... };
7401408e 120
121 redispatch_to '/somewhere';
122
b7063124 123Finally, import sets
124
125 $INC{"NameOfApplication.pm"} = 'Set by "use Web::Simple;" invocation';
126
127so that perl will not attempt to load the application again even if
128
129 require NameOfApplication;
130
131is encountered in other code.
132
3583ca04 133=head1 DISPATCH STRATEGY
134
6a4808bf 135L<Web::Simple> despite being straightforward to use, has a powerful system
3895385d 136for matching all sorts of incoming URLs to one or more subroutines. These
137subroutines can be simple actions to take for a given URL, or something
138more complicated, including entire L<Plack> applications, L<Plack::Middleware>
139and nested subdispatchers.
140
c21c9f07 141=head2 Examples
142
445b3ea0 143 sub dispatch_request {
c21c9f07 144 # matches: GET /user/1.htm?show_details=1
145 # GET /user/1.htm
146 sub (GET + /user/* + ?show_details~ + .htm|.html|.xhtml) {
c254b30e 147 my ($self, $user_id, $show_details) = @_;
c21c9f07 148 ...
149 },
150 # matches: POST /user?username=frew
151 # POST /user?username=mst&first_name=matt&last_name=trout
152 sub (POST + /user + ?username=&*) {
c254b30e 153 my ($self, $username, $misc_params) = @_;
c21c9f07 154 ...
155 },
156 # matches: DELETE /user/1/friend/2
157 sub (DELETE + /user/*/friend/*) {
c254b30e 158 my ($self, $user_id, $friend_id) = @_;
c21c9f07 159 ...
160 },
161 # matches: PUT /user/1?first_name=Matt&last_name=Trout
162 sub (PUT + /user/* + ?first_name~&last_name~) {
c254b30e 163 my ($self, $user_id, $first_name, $last_name) = @_;
c21c9f07 164 ...
165 },
166 sub (/user/*/...) {
445b3ea0 167 my $user_id = $_[1];
168 # matches: PUT /user/1/role/1
169 sub (PUT + /role/*) {
170 my $role_id = $_[1];
171 ...
172 },
173 # matches: DELETE /user/1/role/1
174 sub (DELETE + /role/*) {
175 my $role_id = $_[1];
176 ...
177 },
c21c9f07 178 },
179 }
180
3706e2a0 181=head2 The dispatch cycle
81a5b03e 182
3706e2a0 183At the beginning of a request, your app's dispatch_request method is called
184with the PSGI $env as an argument. You can handle the request entirely in
185here and return a PSGI response arrayref if you want:
81a5b03e 186
3706e2a0 187 sub dispatch_request {
188 my ($self, $env) = @_;
189 [ 404, [ 'Content-type' => 'text/plain' ], [ 'Amnesia == fail' ] ]
190 }
81a5b03e 191
3706e2a0 192However, generally, instead of that, you return a set of dispatch subs:
81a5b03e 193
3706e2a0 194 sub dispatch_request {
195 my $self = shift;
196 sub (/) { redispatch_to '/index.html' },
197 sub (/user/*) { $self->show_user($_[1]) },
198 ...
199 }
81a5b03e 200
e927492b 201Well, a sub is a valid PSGI response too (for ultimate streaming and async
202cleverness). If you want to return a PSGI sub you have to wrap it into an
203array ref.
204
205 sub dispatch_request {
206 [ sub {
207 my $respond = shift;
208 # This is pure PSGI here, so read perldoc PSGI
209 } ]
210 }
211
3706e2a0 212If you return a subroutine with a prototype, the prototype is treated
213as a match specification - and if the test is passed, the body of the
214sub is called as a method any matched arguments (see below for more details).
81a5b03e 215
3706e2a0 216You can also return a plain subroutine which will be called with just $env
217- remember that in this case if you need $self you -must- close over it.
81a5b03e 218
3895385d 219If you return a normal object, L<Web::Simple> will simply return it upwards on
220the assumption that a response_filter (or some arbitrary L<Plack::Middleware>)
221somewhere will convert it to something useful. This allows:
81a5b03e 222
3706e2a0 223 sub dispatch_request {
224 my $self = shift;
225 sub (.html) { response_filter { $self->render_zoom($_[0]) } },
226 sub (/user/*) { $self->users->get($_[1]) },
227 }
81a5b03e 228
3895385d 229to render a user object to HTML, if there is an incoming URL such as:
230
231 http://myweb.org/user/111.html
232
233This works because as we descend down the dispachers, we first match
234C<sub (.html)>, which adds a C<response_filter> (basically a specialized routine
235that follows the L<Plack::Middleware> specification), and then later we also
236match C<sub (/user/*)> which gets a user and returns that as the response.
237This user object 'bubbles up' through all the wrapping middleware until it hits
238the C<response_filter> we defined, after which the return is converted to a
239true html response.
81a5b03e 240
3706e2a0 241However, two types of object are treated specially - a Plack::App object
3895385d 242will have its C<->to_app> method called and be used as a dispatcher:
81a5b03e 243
3706e2a0 244 sub dispatch_request {
245 my $self = shift;
246 sub (/static/...) { Plack::App::File->new(...) },
247 ...
81a5b03e 248 }
249
3706e2a0 250A Plack::Middleware object will be used as a filter for the rest of the
251dispatch being returned into:
81a5b03e 252
6af22ff2 253 ## responds to /admin/track_usage AND /admin/delete_accounts
254
3706e2a0 255 sub dispatch_request {
256 my $self = shift;
6af22ff2 257 sub (/admin/**) {
258 Plack::Middleware::Session->new(%opts);
259 },
260 sub (/admin/track_usage) {
261 ## something that needs a session
262 },
263 sub (/admin/delete_accounts) {
264 ## something else that needs a session
265 },
81a5b03e 266 }
267
3706e2a0 268Note that this is for the dispatch being -returned- to, so if you want to
269provide it inline you need to do:
81a5b03e 270
6af22ff2 271 ## ALSO responds to /admin/track_usage AND /admin/delete_accounts
272
3706e2a0 273 sub dispatch_request {
274 my $self = shift;
3706e2a0 275 sub (/admin/...) {
6af22ff2 276 sub {
277 Plack::Middleware::Session->new(%opts);
278 },
279 sub (/track_usage) {
280 ## something that needs a session
281 },
282 sub (/delete_accounts) {
283 ## something else that needs a session
284 },
3706e2a0 285 }
81a5b03e 286 }
287
3706e2a0 288And that's it - but remember that all this happens recursively - it's
3895385d 289dispatchers all the way down. A URL incoming pattern will run all matching
290dispatchers and then hit all added filters or L<Plack::Middleware>.
3706e2a0 291
81a5b03e 292=head2 Web::Simple match specifications
293
294=head3 Method matches
295
93e30ba3 296 sub (GET) {
15dfe701 297
298A match specification beginning with a capital letter matches HTTP requests
299with that request method.
300
81a5b03e 301=head3 Path matches
302
15dfe701 303 sub (/login) {
304
305A match specification beginning with a / is a path match. In the simplest
306case it matches a specific path. To match a path with a wildcard part, you
307can do:
308
309 sub (/user/*) {
310 $self->handle_user($_[1])
311
312This will match /user/<anything> where <anything> does not include a literal
313/ character. The matched part becomes part of the match arguments. You can
314also match more than one part:
315
316 sub (/user/*/*) {
317 my ($self, $user_1, $user_2) = @_;
318
319 sub (/domain/*/user/*) {
320 my ($self, $domain, $user) = @_;
321
322and so on. To match an arbitrary number of parts, use -
323
324 sub (/page/**) {
325
326This will result in an element per /-separated part so matched. Note that
327you can do
328
329 sub (/page/**/edit) {
330
331to match an arbitrary number of parts up to but not including some final
332part.
333
da8429c9 334Finally,
335
336 sub (/foo/...) {
337
6a4808bf 338Will match /foo/ on the beginning of the path -and- strip it. This is designed
339to be used to construct nested dispatch structures, but can also prove useful
340for having e.g. an optional language specification at the start of a path.
da8429c9 341
342Note that the '...' is a "maybe something here, maybe not" so the above
343specification will match like this:
344
345 /foo # no match
346 /foo/ # match and strip path to '/'
347 /foo/bar/baz # match and strip path to '/bar/baz'
348
15e679c1 349Note: Since Web::Simple handles a concept of file extensions, * and **
350matchers will not by default match things after a final dot, and this
351can be modified by using *.* and **.* in the final position, i.e.:
352
353 /one/* matches /one/two.three and captures "two"
354 /one/*.* matches /one/two.three and captures "two.three"
355 /** matches /one/two.three and captures "one/two"
356 /**.* matches /one/two.three and captures "one/two.three"
357
81a5b03e 358=head3 Extension matches
359
15dfe701 360 sub (.html) {
361
6a4808bf 362will match .html from the path (assuming the subroutine itself returns
363something, of course). This is normally used for rendering - e.g.
15dfe701 364
365 sub (.html) {
74afe4b7 366 response_filter { $self->render_html($_[1]) }
15dfe701 367 }
368
b8bd7bd1 369Additionally,
370
371 sub (.*) {
372
6a4808bf 373will match any extension and supplies the extension as a match argument.
b8bd7bd1 374
9b9866ae 375=head3 Query and body parameter matches
376
377Query and body parameters can be match via
378
379 sub (?<param spec>) { # match URI query
380 sub (%<param spec>) { # match body params
381
cb12d2a3 382The body spec will match if the request content is either
383application/x-www-form-urlencoded or multipart/form-data - the latter
384of which is required for uploads, which are now handled experimentally
385- see below.
9b9866ae 386
387The param spec is elements of one of the following forms -
388
389 param~ # optional parameter
390 param= # required parameter
391 @param~ # optional multiple parameter
392 @param= # required multiple parameter
eb9e0e25 393 :param~ # optional parameter in hashref
394 :param= # required parameter in hashref
395 :@param~ # optional multiple in hashref
396 :@param= # required multiple in hashref
397 * # include all other parameters in hashref
398 @* # include all other parameters as multiple in hashref
9b9866ae 399
eb9e0e25 400separated by the & character. The arguments added to the request are
401one per non-:/* parameter (scalar for normal, arrayref for multiple),
402plus if any :/* specs exist a hashref containing those values.
9b9866ae 403
3895385d 404Please note that if you specify a multiple type parameter match, you are
405ensured of getting an arrayref for the value, EVEN if the current incoming
406request has only one value. However if a parameter is specified as single
407and multiple values are found, the last one will be used.
408
409For example to match a page parameter with an optional order_by parameter one
9b9866ae 410would write:
411
412 sub (?page=&order_by~) {
eb9e0e25 413 my ($self, $page, $order_by) = @_;
414 return unless $page =~ /^\d+$/;
415 $page ||= 'id';
9b9866ae 416 response_filter {
417 $_[1]->search_rs({}, $p);
418 }
419 }
420
421to implement paging and ordering against a L<DBIx::Class::ResultSet> object.
422
3895385d 423Another Example: To get all parameters as a hashref of arrayrefs, write:
eb9e0e25 424
425 sub(?@*) {
426 my ($self, $params) = @_;
427 ...
428
8c4ffad3 429To get two parameters as a hashref, write:
430
431 sub(?:user~&:domain~) {
432 my ($self, $params) = @_; # params contains only 'user' and 'domain' keys
433
434You can also mix these, so:
435
436 sub (?foo=&@bar~&:coffee=&@*) {
437 my ($self, $foo, $bar, $params);
438
439where $bar is an arrayref (possibly an empty one), and $params contains
440arrayref values for all parameters -not- mentioned and a scalar value for
441the 'coffee' parameter.
442
3895385d 443Note, in the case where you combine arrayref, single parameter and named
444hashref style, the arrayref and single parameters will appear in C<@_> in the
38d5b336 445order you defined them in the protoype, but all hashrefs will merge into a
3895385d 446single C<$params>, as in the example above.
447
05aafc1a 448=head3 Upload matches (EXPERIMENTAL)
449
450Note: This feature is experimental. This means that it may not remain
451100% in its current form. If we change it, notes on updating your code
452will be added to the L</CHANGES BETWEEN RELEASES> section below.
453
454 sub (*foo=) { # param specifier can be anything valid for query or body
455
456The upload match system functions exactly like a query/body match, except
457that the values returned (if any) are C<Web::Dispatch::Upload> objects.
458
459Note that this match type will succeed in two circumstances where you might
460not expect it to - first, when the field exists but is not an upload field
461and second, when the field exists but the form is not an upload form (i.e.
462content type "application/x-www-form-urlencoded" rather than
463"multipart/form-data"). In either of these cases, what you'll get back is
464a C<Web::Dispatch::NotAnUpload> object, which will C<die> with an error
465pointing out the problem if you try and use it. To be sure you have a real
466upload object, call
467
468 $upload->is_upload # returns 1 on a valid upload, 0 on a non-upload field
469
470and to get the reason why such an object is not an upload, call
471
472 $upload->reason # returns a reason or '' on a valid upload.
473
474Other than these two methods, the upload object provides the same interface
475as L<Plack::Request::Upload> with the addition of a stringify to the temporary
476filename to make copying it somewhere else easier to handle.
477
81a5b03e 478=head3 Combining matches
479
15dfe701 480Matches may be combined with the + character - e.g.
481
b8bd7bd1 482 sub (GET + /user/*) {
483
484to create an AND match. They may also be combined withe the | character - e.g.
485
486 sub (GET|POST) {
487
488to create an OR match. Matches can be nested with () - e.g.
489
490 sub ((GET|POST) + /user/*) {
491
492and negated with ! - e.g.
493
494 sub (!/user/foo + /user/*) {
495
496! binds to the immediate rightmost match specification, so if you want
497to negate a combination you will need to use
498
499 sub ( !(POST|PUT|DELETE) ) {
500
501and | binds tighter than +, so
502
503 sub ((GET|POST) + /user/*) {
504
505and
506
507 sub (GET|POST + /user/*) {
508
509are equivalent, but
510
1760e999 511 sub ((GET + /admin/...) | (POST + /admin/...)) {
b8bd7bd1 512
513and
514
1760e999 515 sub (GET + /admin/... | POST + /admin/...) {
b8bd7bd1 516
517are not - the latter is equivalent to
518
1760e999 519 sub (GET + (/admin/...|POST) + /admin/...) {
b8bd7bd1 520
3895385d 521which will never match!
b8bd7bd1 522
523=head3 Whitespace
15dfe701 524
525Note that for legibility you are permitted to use whitespace -
526
44db8e76 527 sub (GET + /user/*) {
15dfe701 528
b8bd7bd1 529but it will be ignored. This is because the perl parser strips whitespace
530from subroutine prototypes, so this is equivalent to
531
532 sub (GET+/user/*) {
15dfe701 533
24175cb5 534=head3 Accessing the PSGI env hash
535
3706e2a0 536In some cases you may wish to get the raw PSGI env hash - to do this,
537you can either use a plain sub -
538
539 sub {
540 my ($env) = @_;
541 ...
542 }
24175cb5 543
3706e2a0 544or use the PSGI_ENV constant exported to retrieve it:
c21c9f07 545
3706e2a0 546 sub (GET + /foo + ?some_param=) {
547 my $param = $_[1];
548 my $env = $_[PSGI_ENV];
549 }
c21c9f07 550
3706e2a0 551but note that if you're trying to add a middleware, you should simply use
552Web::Simple's direct support for doing so.
c21c9f07 553
445b3ea0 554=head1 EXPORTED SUBROUTINES
c21c9f07 555
556=head2 response_filter
557
558 response_filter {
559 # Hide errors from the user because we hates them, preciousss
445b3ea0 560 if (ref($_[0]) eq 'ARRAY' && $_[0]->[0] == 500) {
561 $_[0] = [ 200, @{$_[0]}[1..$#{$_[0]}] ];
c21c9f07 562 }
445b3ea0 563 return $_[0];
c21c9f07 564 };
565
566The response_filter subroutine is designed for use inside dispatch subroutines.
567
568It creates and returns a special dispatcher that always matches, and calls
569the block passed to it as a filter on the result of running the rest of the
570current dispatch chain.
571
572Thus the filter above runs further dispatch as normal, but if the result of
573dispatch is a 500 (Internal Server Error) response, changes this to a 200 (OK)
574response without altering the headers or body.
575
576=head2 redispatch_to
577
578 redispatch_to '/other/url';
579
580The redispatch_to subroutine is designed for use inside dispatch subroutines.
581
582It creates and returns a special dispatcher that always matches, and instead
583of continuing dispatch re-delegates it to the start of the dispatch process,
584but with the path of the request altered to the supplied URL.
585
950d8829 586Thus if you receive a POST to '/some/url' and return a redispatch to
c21c9f07 587'/other/url', the dispatch behaviour will be exactly as if the same POST
588request had been made to '/other/url' instead.
589
3895385d 590Note, this is not the same as returning an HTTP 3xx redirect as a response;
38d5b336 591rather it is a much more efficient internal process.
3895385d 592
8c4ffad3 593=head1 CHANGES BETWEEN RELEASES
445b3ea0 594
595=head2 Changes between 0.004 and 0.005
596
597=over 4
598
599=item * dispatch {} replaced by declaring a dispatch_request method
600
601dispatch {} has gone away - instead, you write:
602
603 sub dispatch_request {
e4122532 604 my $self = shift;
445b3ea0 605 sub (GET /foo/) { ... },
606 ...
607 }
608
609Note that this method is still -returning- the dispatch code - just like
610dispatch did.
611
e4122532 612Also note that you need the 'my $self = shift' since the magic $self
613variable went away.
614
615=item * the magic $self variable went away.
616
617Just add 'my $self = shift;' while writing your 'sub dispatch_request {'
618like a normal perl method.
619
445b3ea0 620=item * subdispatch deleted - all dispatchers can now subdispatch
621
622In earlier releases you needed to write:
623
624 subdispatch sub (/foo/...) {
625 ...
626 [
627 sub (GET /bar/) { ... },
628 ...
629 ]
630 }
631
632As of 0.005, you can instead write simply:
633
634 sub (/foo/...) {
635 ...
636 (
637 sub (GET /bar/) { ... },
638 ...
639 )
640 }
8c4ffad3 641
c2150f7d 642=back
643
8c4ffad3 644=head2 Changes since Antiquated Perl
645
646=over 4
647
648=item * filter_response renamed to response_filter
649
650This is a pure rename; a global search and replace should fix it.
651
c21c9f07 652=item * dispatch [] changed to dispatch {}
8c4ffad3 653
654Simply changing
655
656 dispatch [ sub(...) { ... }, ... ];
657
658to
659
660 dispatch { sub(...) { ... }, ... };
661
662should work fine.
663
664=back
665
fb771406 666=head1 DEVELOPMENT HISTORY
667
668Web::Simple was originally written to form part of my Antiquated Perl talk for
669Italian Perl Workshop 2009, but in writing the bloggery example I realised
670that having a bare minimum system for writing web applications that doesn't
671drive me insane was rather nice and decided to spend my attempt at nanowrimo
672for 2009 improving and documenting it to the point where others could use it.
673
58fd1f7f 674The Antiquated Perl talk can be found at L<http://www.shadowcat.co.uk/archive/conference-video/> and the slides are reproduced in this distribution under
675L<Web::Simple::AntiquatedPerl>.
fb771406 676
8c4ffad3 677=head1 COMMUNITY AND SUPPORT
678
679=head2 IRC channel
680
681irc.perl.org #web-simple
682
683=head2 No mailing list yet
684
685Because mst's non-work email is a bombsite so he'd never read it anyway.
686
687=head2 Git repository
688
689Gitweb is on http://git.shadowcat.co.uk/ and the clone URL is:
690
691 git clone git://git.shadowcat.co.uk/catagits/Web-Simple.git
692
693=head1 AUTHOR
694
c2150f7d 695Matt S. Trout (mst) <mst@shadowcat.co.uk>
8c4ffad3 696
697=head1 CONTRIBUTORS
698
48904f80 699Devin Austin (dhoss) <dhoss@cpan.org>
700
701Arthur Axel 'fREW' Schmidt <frioux@gmail.com>
702
c2150f7d 703gregor herrmann (gregoa) <gregoa@debian.org>
8c4ffad3 704
48904f80 705John Napiorkowski (jnap) <jjn1056@yahoo.com>
706
707Josh McMichael <jmcmicha@linus222.gsc.wustl.edu>
708
f42be65c 709Justin Hunter (arcanez) <justin.d.hunter@gmail.com>
48904f80 710
711Kjetil Kjernsmo <kjetil@kjernsmo.net>
712
713markie <markie@nulletch64.dreamhost.com>
714
715Christian Walde (Mithaldu) <walde.christian@googlemail.com>
716
717nperez <nperez@cpan.org>
718
719Robin Edwards <robin.ge@gmail.com>
720
8c4ffad3 721=head1 COPYRIGHT
722
f42be65c 723Copyright (c) 2011 the Web::Simple L</AUTHOR> and L</CONTRIBUTORS>
8c4ffad3 724as listed above.
725
726=head1 LICENSE
727
728This library is free software and may be distributed under the same terms
729as perl itself.
730
3583ca04 731=cut
7401408e 732
5c33dda5 7331;