WP_HTTP_Proxy::authentication_header()publicWP 2.8.0

Retrieve header string for proxy authentication.

Метод класса: WP_HTTP_Proxy{}

Хуков нет.

Возвращает

Строку.

Использование

$WP_HTTP_Proxy = new WP_HTTP_Proxy();
$WP_HTTP_Proxy->authentication_header();

Список изменений

С версии 2.8.0 Введена.

Код WP_HTTP_Proxy::authentication_header() WP 6.5.2

public function authentication_header() {
	return 'Proxy-Authorization: Basic ' . base64_encode( $this->authentication() );
}