<?php
use \src\Silhouette\Http\Request;
use \src\Silhouette\Http\Response;
include 'src/Silhouette/Http/HeadersManagementAbstract.php';
include 'src/Silhouette/Http/RequestInterface.php';
include 'src/Silhouette/Http/ResponseInterfaceAbstract.php';
include 'src/Silhouette/Http/Request.php';
include 'src/Silhouette/Http/Response.php';
// Create request instance from current session
$Request = Request::createFromGlobals();
// Show HTTP request contents
print $Request->__toString();
// Create response instance
$Response = new Response();
$Response->message = 'This works!';
print $Response->recieve();
|