NAME
Sleep::Handler - A Sleep resource.
DESCRIPTION
Resources are the main objects in a REST-ful application. Each thing in a website should be represented with one Resource class.
This base class contains four methods for the different operations that will croak
when called.
CLASS METHODS
- new
-
Constructor. Will add the arguments as attributes to the object.
METHODS
- get
-
Implement
get
to handle a GET request to this resource. - post
-
Implement
post
to handle a POST request to this resource. - put
-
Implement
put
to handle a PUT request to this resource. - delete
-
Implement
delete
to handle a DELETE request to this resource.
BUGS
If you find a bug, please let the author know.
COPYRIGHT
Copyright (c) 2008 Peter Stuifzand. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Peter Stuifzand <peter@stuifzand.eu>