Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

revert HTTP::Parser::XS optional

  • Loading branch information...
commit 470079d35a6000fd8088be8a434b9920af9d22a6 1 parent e976ca0
@miyagawa authored
View
2  Makefile.PL
@@ -6,7 +6,7 @@ requires 'Plack', 0.99;
requires 'AnyEvent';
requires 'HTTP::Status';
requires 'Try::Tiny';
-requires 'HTTP::Parser::XS';
+recommends 'HTTP::Parser::XS';
recommends 'EV';
install_script 'bin/twiggy';
test_requires 'Test::More';
View
1  README
@@ -35,6 +35,7 @@ DESCRIPTION
Fast header parser
Uses XS/C based HTTP header parser for the best performance.
+ (optional)
Lightweight and Fast
The memory required to run twiggy is 6MB and it can serve more than
View
2  lib/Twiggy.pm
@@ -51,7 +51,7 @@ renamed to Twiggy. See L</NAMING> for details.
=item Fast header parser
-Uses XS/C based HTTP header parser for the best performance.
+Uses XS/C based HTTP header parser for the best performance. (optional)
=item Lightweight and Fast
View
2  lib/Twiggy/Server.pm
@@ -16,7 +16,7 @@ use AnyEvent::Socket;
use AnyEvent::Util qw(WSAEWOULDBLOCK);
use HTTP::Status;
-use HTTP::Parser::XS qw(parse_http_request);
+use Plack::HTTPParser qw(parse_http_request);
use Plack::Util;
use constant DEBUG => $ENV{TWIGGY_DEBUG};
Please sign in to comment.
Something went wrong with that request. Please try again.