Dirthara Http
PSR-7 HTTP messages, PSR-17 factories, and status codes for the Dirthara framework.
Installation
PHP requirements, Composer installation, and autoloading.
Getting started
Create requests and responses, change them, and read them back.
HTTP messages
4 items
Status codes
Name status codes with the StatusCode enum, read their reason phrases, and sort them into classes.
URIs
Parse, build, and normalize URIs, and what each component accepts.
Streams
Message bodies backed by PHP stream resources, and what each operation does when it cannot.
Uploaded files
Represent uploaded files, read them, and move them to their destination.
Factories
The PSR-17 factories that create every message, URI, stream, and uploaded file.
Error handling
The exception interface, the exception classes, diagnostic context, and logging.