charm / http
A simple and extendable implementation of PSR-7 HTTP message interfaces
2.0.0
2024-05-26 20:44 UTC
README
A very pure, extendable set of traits and classes that implement PSR-7 HTTP message interfaces from https://www.php-fig.org/psr/psr-7/.
The library places no restrictions on extending the classes or overriding any method implementations. In fact, the main reason why it exists is that most other implementations specifically prohibits extending or overriding their implementation.
Classes
Each of these classes are convenience classes which use the traits. You may use them directly, or you may implement your own variants by using the traits.
Charm\Http\Message\Message
Charm\Http\Message\Request
Charm\Http\Message\ServerRequest
Charm\Http\Message\Response
Charm\Http\Message\Uri
Charm\Http\Message\Stream
Charm\Http\Message\UploadedFile
Traits
Charm\Http\Message\MessageTrait
implementsPsr\Http\Message\MessageInterface
Charm\Http\Message\RequestTrait
implementsPsr\Http\Message\RequestInterface
Charm\Http\Message\ServerRequestTrait
implementsPsr\Http\Message\ServerRequestInterface
Charm\Http\Message\ResponseTrait
implementsPsr\Http\Message\ResponseInterface
Charm\Http\Message\UriTrait
implementsPsr\Http\Message\UriInterface
Charm\Http\Message\StreamTrait
implementsPsr\Http\Message\StreamInterface
Charm\Http\Message\UploadedFileTrait
implementsPsr\Http\Message\UploadedFileInterface