-
-
06 Sep 2015 09:11:21 UTC
- Distribution: Perinci-Access-Base
- Module version: 0.33
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (9087 / 0 / 18)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (14.03KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- URI::Split
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- DESCRIPTION
- ATTRIBUTES
- METHODS
- SEE ALSO
- HOMEPAGE
- SOURCE
- BUGS
- AUTHOR
- COPYRIGHT AND LICENSE
NAME
Perinci::Access::Base - Base class for all Perinci Riap clients
VERSION
This document describes version 0.33 of Perinci::Access::Base (from Perl distribution Perinci-Access-Base), released on 2015-09-06.
DESCRIPTION
This is a thin base class for all Riap clients (
Perinci::Access::*
). It currently only provides check_request() which does the following:perform some basic sanity checking of the Riap request hash
$req
split request keys
uri
Split result is put in
$req->{-uri_scheme}
,$req->{-uri_auth}
,$req->{-uri_path}
,$req->{-uri_query}
, and$req->{-uri_frag}
.
ATTRIBUTES
riap_version => float (default: 1.1)
METHODS
new(%args) => OBJ
Constructor. Does nothing except creating a blessed hashref from
%args
. Subclasses should override this method and do additional stuffs as needed.check_request($req) => RESP|undef
Should be called by subclasses during the early phase in
request()
. Will return an enveloped error response on error, or undef on success.SEE ALSO
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Perinci-Access-Base.
SOURCE
Source repository is at https://github.com/sharyanto/perl-Perinci-Access-Base.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Access-Base
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Perinci::Access::Base, copy and paste the appropriate command in to your terminal.
cpanm Perinci::Access::Base
perl -MCPAN -e shell install Perinci::Access::Base
For more information on module installation, please visit the detailed CPAN module installation guide.