WordPress at a glance
function is not described

Requests_Auth_Basic::curl_before_send() public WP 1.0

Set cURL parameters before the data is sent

{} It's a method of the class: Requests_Auth_Basic{}

No Hooks.

Return

Null. Nothing.

Usage

$Requests_Auth_Basic = new Requests_Auth_Basic();
$Requests_Auth_Basic->curl_before_send( $handle );
$handle(resource) (required) (passed by reference — &)
cURL resource

Code of Requests_Auth_Basic::curl_before_send() WP 5.5.3

<?php
public function curl_before_send(&$handle) {
	curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
	curl_setopt($handle, CURLOPT_USERPWD, $this->getAuthString());
}