Registry / networking / amphp-http

amphp-http

JSON →
library2.1.2phppackagistunverified

Basic HTTP primitives which can be shared by servers and clients.

composer require amphp/http
INSTALL
IMPORT
SIG · AMPHP-HTTP
A
amphp-http
networkingphpv2.1.2
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.

HttpMessage
use Amp\Http\HttpMessage;

Create an HTTP message and set/get headers

use Amp\Http\HttpMessage; $message = new HttpMessage(); $message->setHeader('Content-Type', 'text/plain'); echo $message->getHeader('Content-Type');
Debug
Known issues
breakingRequires PHP 8.1+ and the amphp/amp async runtime.
fix
Ensure your environment meets the PHP version requirement and includes amphp/amp.
affects: >=2.0.0
Upgrade
Version history
2.1.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
OpenAI (training)
1
Resources
amphp-http — pip install amphp-http · libregistry