Requests_Proxy_HTTP::register

Advertisement

Summery Summery

Register the necessary callbacks

Syntax Syntax

Requests_Proxy_HTTP::register( Requests_Hooks $hooks )

Parameters Parameters

$hooks

(Required) Hook system

Source Source

File: wp-includes/Requests/Proxy/HTTP.php

	public function register(Requests_Hooks &$hooks) {
		$hooks->register('curl.before_send', array(&$this, 'curl_before_send'));

		$hooks->register('fsockopen.remote_socket', array(&$this, 'fsockopen_remote_socket'));
		$hooks->register('fsockopen.remote_host_path', array(&$this, 'fsockopen_remote_host_path'));
		if ($this->use_authentication) {
			$hooks->register('fsockopen.after_headers', array(&$this, 'fsockopen_header'));
		}
	}

Advertisement

Changelog Changelog

Changelog
Version Description
1.6 Introduced.

See also See also

Advertisement

Leave a Reply