Requests_Proxy_HTTP::register()

最后更新于:2021-12-01 11:09:23

Requests_Proxy_( Requests_Hooks$hooks)

Register the necessary callbacks

参数

$hooks

(Requests_Hooks) (Required) Hook system

源文件

文件: gc-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'));
		}
	}