The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Error::Pure::HTTP::Print - Error::Pure module for simple error print over HTTP.

SYNOPSIS

 use Error::Pure::HTTP::Print qw(err);

 err 'This is a fatal error', 'name', 'value';

SUBROUTINES

err(@messages)
 Process error with messages @messages.

EXAMPLE1

 use strict;
 use warnings;

 use Error::Pure::HTTP::Print qw(err);

 # Error.
 err '1';

 # Output:
 # Content-type: text/plain
 #
 # 1

EXAMPLE2

 use strict;
 use warnings;

 use Error::Pure::HTTP::Print qw(err);

 # Error.
 err '1', '2', '3';

 # Output:
 # Content-type: text/plain
 #
 # 1

DEPENDENCIES

Error::Pure::Utils, Exporter, List::MoreUtils, Readonly.

SEE ALSO

Task::Error::Pure

Install the Error::Pure modules.

REPOSITORY

https://github.com/michal-josef-spacek/Error-Pure-HTTP

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© 2012-2023 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.16