ICanBoogie/HTTP v2.4.0
  • Namespace
  • Class

Namespaces

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

Classes

  • CallableDispatcher
  • Dispatcher
  • File
  • FileInfo
  • FileList
  • Headers
  • Helpers
  • RedirectResponse
  • Request
  • Response
  • Status
  • WeightedDispatcher

Interfaces

  • DispatcherInterface
  • Exception

Exceptions

  • DispatcherNotDefined
  • ForceRedirect
  • MethodNotSupported
  • NotFound
  • ServiceUnavailable
  • StatusCodeNotValid

Functions

  • dispatch
  • get_dispatcher
  • get_initial_request

Class CallableDispatcher

Wrapper for callable dispatchers.

ICanBoogie\HTTP\CallableDispatcher implements ICanBoogie\HTTP\DispatcherInterface
Namespace: ICanBoogie\HTTP
Located at CallableDispatcher.php

Methods summary

public
# __construct( callable $callable )

Parameters

$callable
public ICanBoogie\HTTP\Response
# __invoke( ICanBoogie\HTTP\Request $request )

Parameters

$request

Returns

ICanBoogie\HTTP\Response
A response to the request.

Inheritdoc

Implementation of

ICanBoogie\HTTP\DispatcherInterface::__invoke()
public ICanBoogie\HTTP\Response
# rescue( ICanBoogie\HTTP\Exception $exception, ICanBoogie\HTTP\Request $request )

Parameters

$exception
$request

Returns

ICanBoogie\HTTP\Response
A response to the request exception.

Throws

Exception
when the request exception cannot be rescued.

Inheritdoc

Implementation of

ICanBoogie\HTTP\DispatcherInterface::rescue()
ICanBoogie/HTTP v2.4.0 API documentation generated by ApiGen