ICanBoogie
  • Documentation
  • API Reference
  • HTTP v2.4.0
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

Interface DispatcherInterface

Dispatcher interface.

Direct known implementers

ICanBoogie\HTTP\CallableDispatcher, ICanBoogie\HTTP\Dispatcher

Namespace: ICanBoogie\HTTP
Located at DispatcherInterface.php

Methods summary

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

Process the request.

Process the request.

Parameters

$request

Returns

ICanBoogie\HTTP\Response
A response to the request.
public rescue( ICanBoogie\HTTP\Exception $exception, ICanBoogie\HTTP\Request $request ) : ICanBoogie\HTTP\Response

Rescues the exception that was thrown during the request process.

Rescues the exception that was thrown during the request process.

Parameters

$exception
$request

Returns

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

Throws

Exception
when the request exception cannot be rescued.
HTTP v2.4.0 – Check on GitHub – API documentation generated by ApiGen