Async::UWSGI::Server::Connection;
use Scalar::Util qw(weaken);
use URI;
use URI::QueryParam;
use JSON::MaybeXS;
use Encode qw(encode);
use Future;
use HTTP::Response;
use Protocol::UWSGI qw(:server)
an incoming connection to a server
=head1 VERSION
version 0.006
=head1 DESCRIPTION
=cut
use JSON::MaybeXS;
use URI::QueryParam;
use IO::Async::Timer::Countdown;
use Encode qw(encode);
use Prot
;
=head2 CONTENT_TYPE_HANDLER
=cut
our %CONTENT_TYPE_HANDLER = (
'application/javascript' => 'json',
);
use constant USE_HTTP_RESPONSE => 0;
=head1 METHODS
=cut
=head2 configure
Applies confi
ntent_handler { shift->{default_content_handler} }
=head2 json
Accessor for the current JSON state
=cut
sub json { shift->{json} ||= JSON::MaybeXS->new(utf8 => 1) }
=head2 on_read
Base read hand
bus
=item * on_request - callback when we get an incoming request
=back
=head2 json
Accessor for the current JSON state
=head2 on_read
Base read handler for incoming traffic.
Attempts to deleg
for the request body, available to the L</finish_request> callback.
=head2 content_handler_json
Handle JSON content.
=head1 INHERITED METHODS
=over 4
=item L<IO::Async::Stream>
L<close|IO::Async