Overview

Packages

  • Requests
    • Authentication
    • Cookies
    • Proxy
    • Session
    • Transport
    • Utilities

Classes

  • Requests_Hooks
  • Requests_IDNAEncoder
  • Requests_IPv6
  • Requests_IRI
  • Requests_SSL
  • Requests_Utility_CaseInsensitiveDictionary
  • Requests_Utility_FilteredIterator

Interfaces

  • Requests_Hooker
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Warning! You are currently reading the documentation for Requests 1.x.

It is recommended to upgrade to Requests 2.x at your earliest convenience. Upgrading to Requests 2.x is fairly straight-forward.
A full list of the changes can be found in the Changelog.

Visit the documentation for Requests_Hooker in Requests 2.x.

Interface Requests_Hooker

Event dispatcher

Direct known implementers

Requests_Hooks
Package: Requests\Utilities
Located at Requests/Hooker.php
Methods summary
public
# register( string $hook, callable $callback, integer $priority = 0 )

Register a callback for a hook

Register a callback for a hook

Parameters

$hook
Hook name
$callback
Function/method to call on event
$priority
Priority number. <0 is executed earlier, >0 is executed later
public boolean
# dispatch( string $hook, array $parameters = array() )

Dispatch a message

Dispatch a message

Parameters

$hook
Hook name
$parameters
Parameters to pass to callbacks

Returns

boolean
Successfulness
Requests 1.8.1 API Documentation API documentation generated by ApiGen