ICanBoogie
  • Documentation
  • API Reference
  • HTTP v2.4.0
Namespaces
  • ICanBoogie
    • Exception
    • HTTP
      • Dispatcher
      • Headers
      • Request
Classes
  • BeforeDispatchEvent
  • DispatchEvent

Class DispatchEvent

Event class for the ICanBoogie\HTTP\Dispatcher::dispatch event.

Third parties may use this event to alter the response before it is returned by the dispatcher.

ICanBoogie\Event
┗ ICanBoogie\HTTP\Dispatcher\DispatchEvent
Namespace: ICanBoogie\HTTP\Dispatcher
Located at Dispatcher/DispatchEvent.php

Methods summary

protected get_request( void )
protected get_response( void )
protected set_response( ICanBoogie\HTTP\Response $response = null )
public __construct( ICanBoogie\HTTP\Dispatcher $target, ICanBoogie\HTTP\Request $request, ICanBoogie\HTTP\Response & $response = null )

The event is constructed with the type dispatch.

The event is constructed with the type dispatch.

Parameters

$target
$request
$response
Reference to the response.

Properties summary

Magic properties

public $response : ICanBoogie\HTTP\Response
public read-only $request : ICanBoogie\HTTP\Request
HTTP v2.4.0 – Check on GitHub – API documentation generated by ApiGen