do_action( 'http_api_debug',
$response, 'response', 'WpOrg\Requests\Requests',
$parsed_args,
$url );
return $response;
} } if ( is_null( $parsed_args['headers'
] ) ) { $parsed_args['headers'
] = array
();
} // WP allows passing in headers as a string, weirdly.
if ( !
is_array( $parsed_args['headers'
] ) ) { $processed_headers = WP_Http::
processHeaders( $parsed_args['headers'
] );
$parsed_args['headers'
] =
$processed_headers['headers'
];
} // Setup arguments.
$headers =
$parsed_args['headers'
];
$data =
$parsed_args['body'
];
$type =
$parsed_args['method'
];
$options = array
( 'timeout' =>
$parsed_args['timeout'
],
'useragent' =>
$parsed_args['user-agent'
],
'blocking' =>
$parsed_args['blocking'
],