No description
This repository has been archived on 2026-08-22. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Perl 80.9%
  • Raku 19.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marcus Ramberg 16e8b0a1f9 Add reamde
2019-03-06 10:45:40 +01:00
lib/Mojolicious/Plugin Add Contributors heading 2019-03-06 10:44:43 +01:00
t Add a test for other formats than html 2019-03-06 17:38:31 +08:00
.gitignore git ship start 2019-03-06 09:09:45 +01:00
.perltidyrc Tidy code 2019-03-06 17:03:37 +08:00
.travis.yml Prepare for initial release 2019-03-06 09:44:37 +01:00
Changes Released version 0.01 2019-03-06 10:45:06 +01:00
cpanfile Prepare for initial release 2019-03-06 09:44:37 +01:00
Makefile.PL Released version 0.01 2019-03-06 10:45:06 +01:00
MANIFEST.SKIP git ship start 2019-03-06 09:09:45 +01:00
README.md Add reamde 2019-03-06 10:45:40 +01:00

NAME

Mojolicious::Plugin::TextExceptions - Render exceptions as text in command line user agents

SYNOPSIS

use Mojolicious::Lite;

# Only enable this plugin when running tests
plugin 'TextExceptions' if $ENV{HARNESS_ACTIVE};

# Only enable this plugin when developing
plugin 'TextExceptions' if app->mode eq 'development';

# Always enabling the plugin can leak sensitive information
# to the end user
plugin 'TextExceptions';

plugin 'TextExceptions', ua_re => qr{^LWP}; # Override the default regex for user agent

DESCRIPTION

This plugin looks for curl/wget/mojo user agent and renders exceptions as text instead of html.

METHODS

register

Sets up a before_render hook to look for text based user agents and render exceptions as text.

Currently supports Mojo::UserAgent, curl and wget

SEE ALSO

Mojolicious

COPYRIGHT AND LICENSE

Copyright (C) 2019, Marcus Ramberg

This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.

AUTHOR

Marcus Ramberg mramberg@cpan.org

CONTRIBUTORS

Jan Henning Thorsen jhthorsen@cpan.org