The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Perinci::Access::Lite - A lightweight Riap client library

VERSION

This document describes version 0.14 of Perinci::Access::Lite (from Perl distribution Perinci-Access-Lite), released on 2016-09-25.

DESCRIPTION

This module is a lightweight alternative to Perinci::Access. It has less prerequisites but does fewer things. The things it supports:

  • Local (in-process) access to Perl modules and functions

    Currently only call, meta, and list actions are implemented. Variables and other entities are not yet supported.

    The list action only gathers keys from %SPEC and do not yet list subpackages.

  • HTTP/HTTPS

  • HTTP over Unix socket

Differences with Perinci::Access:

  • For network access, uses HTTP::Tiny module family instead of LWP

    This results in fewer dependencies.

  • No wrapping, no argument checking

    For 'pl' or schemeless URL, no wrapping (Perinci::Sub::Wrapper) is done, only normalization (using Perinci::Sub::Normalize).

  • No transaction or logging support

  • No support for some schemes

    This includes: Riap::Simple over pipe/TCP socket.

ADDED RESULT METADATA

This class might add the following property/attribute in result metadata:

x.hint.result_binary => bool

If result's schema type is buf, then this class will set this attribute to true, to give hints to result formatters.

ATTRIBUTES

riap_version => float (default: 1.1)

METHODS

new(%attrs) => obj

$pa->request($action, $url, $extra) => hash

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Perinci-Access-Lite.

SOURCE

Source repository is at https://github.com/perlancar/perl-Perinci-Access-Lite.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Access-Lite

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.

SEE ALSO

Perinci::Access

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 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.