ICanBoogie/HTTP v2.4.0
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Exception
    • HTTP
      • Dispatcher
      • Headers
      • Request

Classes

  • BeforeDispatchEvent
  • DispatchEvent

Class BeforeDispatchEvent

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

Third parties may use this event to provide a response to the request before the dispatchers are invoked. The event is usually used by third parties to redirect requests or provide cached responses.

ICanBoogie\Event
Extended by ICanBoogie\HTTP\Dispatcher\BeforeDispatchEvent
Namespace: ICanBoogie\HTTP\Dispatcher
Located at Dispatcher/BeforeDispatchEvent.php

Methods summary

protected
# get_request( )
protected
# get_response( )
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:before.

The event is constructed with the type dispatch:before.

Parameters

$target
$request
$response
Reference to the response.

Properties summary

Magic properties

public ICanBoogie\HTTP\Response $response
public read-only ICanBoogie\HTTP\Request $request
ICanBoogie/HTTP v2.4.0 API documentation generated by ApiGen