Registry / networking / psr-http-message

psr-http-message

JSON →
library1.0.1phppackagistunverified

Common interface for HTTP messages.

composer require psr/http-message
INSTALL
IMPORT
SIG · PSR-HTTP-MESSAGE
P
psr-http-message
networkingphpv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ServerRequestInterface
use Psr\Http\Message\ServerRequestInterface;

Type-hint a function to accept a PSR-7 server request.

use Psr\Http\Message\ServerRequestInterface; function handleRequest(ServerRequestInterface $request) { echo $request->getMethod(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
psr-http-message — pip install psr-http-message · libregistry