Kris Wallsmith 1b4aaa2c8e [HttpFoundation] fixed ApacheRequest %!s(int64=13) %!d(string=hai) anos
..
File 8235848b5b [HttpFoundation][File] Add flv file default extension %!s(int64=13) %!d(string=hai) anos
SessionStorage 94e7e54777 merged branch mvrhov/pdo_sessstorage_fix (PR #2382) %!s(int64=13) %!d(string=hai) anos
ApacheRequest.php 1b4aaa2c8e [HttpFoundation] fixed ApacheRequest %!s(int64=13) %!d(string=hai) anos
Cookie.php e06cea9aaa [HttpFoundation] Cookie values should not be restricted %!s(int64=13) %!d(string=hai) anos
FileBag.php e3421a0b1d [DoctrineBridge] fixed some CS %!s(int64=13) %!d(string=hai) anos
HeaderBag.php 7dcbcbe69d [HttpFoundation] tagged public @api %!s(int64=14) %!d(string=hai) anos
LICENSE f54cedfe5e added LICENSE files for the subtree repositories %!s(int64=14) %!d(string=hai) anos
ParameterBag.php 4316595dbb fixed CS %!s(int64=13) %!d(string=hai) anos
README.md 997f354d53 tweaked the README files %!s(int64=13) %!d(string=hai) anos
RedirectResponse.php 020fa51c54 [RedirectResponse] Added missing `doctype` and `title` tag %!s(int64=13) %!d(string=hai) anos
Request.php e3421a0b1d [DoctrineBridge] fixed some CS %!s(int64=13) %!d(string=hai) anos
RequestMatcher.php cd24fb86a8 change explode's limit parameter based on known variable content %!s(int64=13) %!d(string=hai) anos
RequestMatcherInterface.php 7dcbcbe69d [HttpFoundation] tagged public @api %!s(int64=14) %!d(string=hai) anos
Response.php 805a2672d0 Remove Content-Length header adding for now. Fixes #1846. %!s(int64=13) %!d(string=hai) anos
ResponseHeaderBag.php e3421a0b1d [DoctrineBridge] fixed some CS %!s(int64=13) %!d(string=hai) anos
ServerBag.php 542cfd62df [ServerBag] Skip unnecessary loop in `getHeaders()` %!s(int64=13) %!d(string=hai) anos
Session.php 27ba003e5e [HttpFoundation] changed the strategy introduced in a5ccda47b4406518ee75929ce2e690b6998c021b to fix functional tests and still allow to call save more than once for a Session %!s(int64=13) %!d(string=hai) anos
composer.json d1ae6c7cb6 bumped Symfony version in composer.json files to 2.0.7 %!s(int64=13) %!d(string=hai) anos

README.md

HttpFoundation Component

HttpFoundation defines an object-oriented layer for the HTTP specification.

It provides an abstraction for requests, responses, uploaded files, cookies, sessions, ...

In this example, we get a Request object from the current PHP global variables:

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

$request = Request::createFromGlobals();
echo $request->getPathInfo();

You can also create a Request directly -- that's interesting for unit testing:

$request = Request::create('/?foo=bar', 'GET');
echo $request->getPathInfo();

And here is how to create and send a Response:

$response = new Response('Not Found', 404, array('Content-Type' => 'text/plain'));
$response->send();

The Request and the Response classes have many other methods that implement the HTTP specification.

Resources

Unit tests:

https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/HttpFoundation