ICanBoogie
  • Documentation
  • API Reference
  • HTTP v2.5.0
Namespaces
  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher
Classes
  • CallableDispatcher
  • File
  • FileInfo
  • FileList
  • FileResponse
  • Headers
  • RedirectResponse
  • Request
  • RequestDispatcher
  • RequestRange
  • Response
  • Status
  • WeightedDispatcher
Interfaces
  • Dispatcher
  • Exception
  • SecurityError
Exceptions
  • AuthenticationRequired
  • ClientError
  • DispatcherNotDefined
  • ForceRedirect
  • MethodNotSupported
  • NotFound
  • PermissionRequired
  • ServerError
  • ServiceUnavailable
  • StatusCodeNotValid

Class CallableDispatcher

Wrapper for callable dispatchers.

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

Methods summary

public __construct( callable $callable )

Parameters

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

Parameters

$request

Returns

ICanBoogie\HTTP\Response
A response to the request.

Inheritdoc

Implementation of

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

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\Dispatcher::rescue()
HTTP v2.5.0 – Check on GitHub – API documentation generated by ApiGen