A simple, type-safe, zero dependency port of the javascript fetch WebApi for PHP
New IO interface provided by castor/io
This is a backward incompatible release:
MNC\Http\Enconding\JsonReader
interface has been removed. It did not do anything that the normal reading plus buffering could not do.MNC\Http\Response::reasonPhrase
method has been removed. Not it is implemented in MNC\Http\Status::reasonPhrase
MNC\Http\Response
is now an interface.MNC\Http\Redirected
interface when a one or more redirects have been followed. A collection of MNC\Http\PartialResponse
can be obtained from them with the headers and status of the previous redirects.First version