http: split and sort use statements

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-11-24 18:13:14 +01:00
parent 127dbe7c7d
commit 5cef57dee9

View File

@ -9,43 +9,47 @@ package PVE::APIServer::AnyEvent;
use strict; use strict;
use warnings; use warnings;
use Time::HiRes qw(usleep ualarm gettimeofday tv_interval);
use Socket qw(IPPROTO_TCP TCP_NODELAY SOMAXCONN); use AnyEvent::HTTP;
use POSIX qw(strftime EINTR EAGAIN); use AnyEvent::Handle;
use Fcntl; use AnyEvent::IO;
use IO::File; use AnyEvent::Socket;
use File::stat qw(); # use AnyEvent::Strict; # only use this for debugging
use File::Find; use AnyEvent::TLS;
use MIME::Base64; use AnyEvent::Util qw(guard fh_nonblocking WSAEWOULDBLOCK WSAEINPROGRESS);
use Compress::Zlib;
use Digest::MD5; use Digest::MD5;
use Digest::SHA; use Digest::SHA;
# use AnyEvent::Strict; # only use this for debugging
use AnyEvent::Util qw(guard fh_nonblocking WSAEWOULDBLOCK WSAEINPROGRESS);
use AnyEvent::Socket;
use AnyEvent::Handle;
use Net::SSLeay;
use AnyEvent::TLS;
use AnyEvent::IO;
use AnyEvent::HTTP;
use Fcntl ();
use Compress::Zlib;
use Encode; use Encode;
use PVE::SafeSyslog; use Fcntl ();
use PVE::INotify; use Fcntl;
use PVE::Tools; use File::Find;
use PVE::APIServer::Formatter; use File::stat qw();
use PVE::APIServer::Utils; use IO::File;
use MIME::Base64;
use Net::SSLeay;
use POSIX qw(strftime EINTR EAGAIN);
use Socket qw(IPPROTO_TCP TCP_NODELAY SOMAXCONN);
use Time::HiRes qw(usleep ualarm gettimeofday tv_interval);
use Net::IP; #use Data::Dumper; # FIXME: remove, just use: print to_json([$var], {pretty => 1}) ."\n";
use URI;
use URI::Escape;
use HTTP::Status qw(:constants);
use HTTP::Date; use HTTP::Date;
use HTTP::Headers; use HTTP::Headers;
use HTTP::Request; use HTTP::Request;
use HTTP::Response; use HTTP::Response;
use Data::Dumper; use HTTP::Status qw(:constants);
use JSON; use JSON;
use Net::IP;
use URI::Escape;
use URI;
use PVE::INotify;
use PVE::SafeSyslog;
use PVE::Tools;
use PVE::APIServer::Formatter;
use PVE::APIServer::Utils;
my $limit_max_headers = 64; my $limit_max_headers = 64;
my $limit_max_header_size = 8*1024; my $limit_max_header_size = 8*1024;