ICanBoogie/HTTP master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher

Classes

  • AlterEvent
  • BeforeDispatchEvent
  • DispatchEvent

Class DispatchEvent

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

Event hooks may use this event to alter the response before it is returned by the request dispatcher.

ICanBoogie\Event
Extended by ICanBoogie\HTTP\RequestDispatcher\DispatchEvent
Namespace: ICanBoogie\HTTP\RequestDispatcher
Located at RequestDispatcher/DispatchEvent.php

Methods summary

protected ICanBoogie\HTTP\Request
# get_request( )

Returns

ICanBoogie\HTTP\Request
protected ICanBoogie\HTTP\Response|null
# get_response( )

Returns

ICanBoogie\HTTP\Response|null
protected
# set_response( ICanBoogie\HTTP\Response $response = null )

Parameters

$response
public
# __construct( ICanBoogie\HTTP\RequestDispatcher $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.

Constants summary

string TYPE
# 'dispatch'

Properties summary

Magic properties

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