ICanBoogie/HTTP master
  • Namespace
  • Class

Namespaces

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

Classes

  • CallableDispatcher
  • DispatcherProvider
  • File
  • FileInfo
  • FileList
  • FileResponse
  • Headers
  • ProvideDispatcher
  • RedirectResponse
  • Request
  • RequestDispatcher
  • RequestOptionsMapper
  • RequestRange
  • Response
  • Status
  • WeightedDispatcher

Interfaces

  • Dispatcher
  • Exception
  • FileOptions
  • RequestMethods
  • RequestOptions
  • ResponseStatus
  • SecurityError

Exceptions

  • AuthenticationRequired
  • ClientError
  • DispatcherNotDefined
  • DispatcherProviderNotDefined
  • ForceRedirect
  • MethodNotSupported
  • NotFound
  • PermissionRequired
  • ServerError
  • ServiceUnavailable
  • StatusCodeNotValid

Functions

  • dispatch
  • get_dispatcher
  • get_initial_request

Class WeightedDispatcher

Used to define a dispatcher and its weight.

<?php

$dispatcher['my'] = new WeightedDispatcher('callback', 'before:that_other_dispatcher');
ICanBoogie\HTTP\WeightedDispatcher uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\HTTP
Located at WeightedDispatcher.php

Methods summary

protected ICanBoogie\HTTP\Dispatcher|string
# get_dispatcher( )

Returns

ICanBoogie\HTTP\Dispatcher|string
protected integer|string
# get_weight( )

Returns

integer|string
public
# __construct( ICanBoogie\HTTP\Dispatcher|string $dispatcher, integer|string $weight = self::WEIGHT_DEFAULT )

Initializes the $dispatcher and $weight properties.

Initializes the $dispatcher and $weight properties.

Parameters

$dispatcher
$weight

Constants summary

string WEIGHT_TOP
# 'top'
string WEIGHT_BOTTOM
# 'bottom'
string WEIGHT_BEFORE_PREFIX
# 'before:'
string WEIGHT_AFTER_PREFIX
# 'after:'
integer WEIGHT_DEFAULT
# 0

Properties summary

Magic properties

public read-only string|ICanBoogie\HTTP\Dispatcher $dispatcher
public read-only integer|string $weight
ICanBoogie/HTTP master API documentation generated by ApiGen