Smalldb-REST  v0.5-5-gff393ee
Public Member Functions | Protected Attributes | List of all members
Router Class Reference

Description

Interpret HTTP request data and call handler.

Public Member Functions

 __construct ($config, IHandler $handler)
 Constructor. More...
 
 handle ($server, $get, $post)
 Interpret the HTTP request. More...
 

Protected Attributes

 $handler
 Handler to invoke. More...
 

Constructor & Destructor Documentation

__construct (   $config,
IHandler  $handler 
)

Constructor.

Member Function Documentation

handle (   $server,
  $get,
  $post 
)

Interpret the HTTP request.

Member Data Documentation

$handler
protected

Handler to invoke.