| 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; | |