Search by

puff / http

dcto

HTTP message, request and response component for Puff

dev-main 2026-08-20 08:39 UTC

This package is auto-updated.

Last update: 2026-08-20 08:45:50 UTC


README

PSR-7 HTTP messages and PSR-17 factories for Puff.

The package provides requests, responses, URIs, streams, uploaded files, trusted-proxy resolution, PHP SAPI request creation, and response emission. Cookies, sessions, and HTTP clients are maintained as separate components.

Factories

  • RequestFactory creates client-side PSR-7 requests.
  • ServerRequestFactory creates PSR-17 server requests or builds them from PHP globals.
  • ResponseFactory, StreamFactory, UriFactory, and UploadedFileFactory implement their corresponding PSR-17 interfaces.

All PSR-17 factory interfaces are registered automatically in the Puff container.