Protocol::HTTP::errc - HTTP parser error constants
use Protocol::HTTP::errc; my ($request, $state, $position, $error) = $parser->parse($str); if ($error and $error == Protocol::HTTP::errc::body_too_large) { ... }
Constants provided by this package are returned by parsers to signal about http protocol errors.
All errors are XS::STL::ErrorCode objects and are of category Protocol::HTTP::error_category.
Protocol::HTTP::error_category
Protocol::HTTP::errc::body_too_large->category() == Protocol::HTTP::error_category; # true
http protocol generic error
multiple headers "Content-Length"
http headers exceeded maximum configured value
message body (plain or in chunks) exceeded maximum configured value
Body arrived for a message that is not supposed to have a body
EOF arrived for a message that should not end right now
"100 continue" code arrived from server while it was not supposed to send that
Protocol::HTTP
To install Protocol::HTTP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::HTTP
CPAN shell
perl -MCPAN -e shell install Protocol::HTTP
For more information on module installation, please visit the detailed CPAN module installation guide.