APIClient/Utils/HTTPRequest.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.4% 21 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« APIClient/Response.pm ↑ Summary APIClient/Utils/CLIRequest.pm »
1 package cPanel::APIClient::Utils::HTTPRequest;
2  
3 # Copyright 2020 cPanel, L. L. C.
4 # All rights reserved.
5 # http://cpanel.net
6 #
7 # This is free software; you can redistribute it and/or modify it under the
8 # same terms as Perl itself. See L<perlartistic>.
9  
10 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 ▶use URI::Escape ();
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 2 ▶use cPanel::APIClient::Utils::FormArray ();
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 9 ▶sub encode_form {
Subroutine encode_form: called CC=1 SCAR=0.0
Pod undocumented
18 9 my ($args_hr) = @_;
19  
20 9 my @pieces = cPanel::APIClient::Utils::FormArray::to_kv_equals_strings($args_hr);
21  
22 9 return join( '&', @pieces );
23 }
24  
25 2 1;
« APIClient/Response.pm ↑ Summary APIClient/Utils/CLIRequest.pm »