ICanBoogie/HTTP v2.4.0
  • Namespace
  • Class

Namespaces

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

Classes

  • Context

Class Context

The context of a request.

This is a general purpose container used to store the objects and variables related to a request.

ICanBoogie\HTTP\Request\Context uses ICanBoogie\PrototypeTrait (not available)
Namespace: ICanBoogie\HTTP\Request
Located at Request/Context.php

Methods summary

protected
# get_request( )
protected
# set_dispatcher( ICanBoogie\HTTP\DispatcherInterface|null $dispatcher )

Sets the dispatcher currently dispatching the request.

Sets the dispatcher currently dispatching the request.

Parameters

$dispatcher

Throws

InvalidArgumentException
if the value is not null and does not implements ICanBoogie\HTTP\DispatcherInterface.
protected
# get_dispatcher( )
public
# __construct( ICanBoogie\HTTP\Request $request )

Parameters

$request
The request the context belongs to.

Properties summary

Magic properties

public ICanBoogie\HTTP\DispatcherInterface $dispatcher

The dispatcher currently dispatching the request.

public read-only ICanBoogie\HTTP\Request $request

The request associated with the context.

ICanBoogie/HTTP v2.4.0 API documentation generated by ApiGen