Just a re-release locking the interface in place. First final release!
Changes
- Added static analysis through psalm.
Changes
Request
can now be instantiated without passing all values, in which cases it will set itself up by usingRequestFactory::getValuesFromServer
.
Changes
dispatch
now terminates by default,dispatchAndTerminate
has been removed, anddispatchWithoutTerminate
has been added.Parable\Http\Exception
has been renamed toParable\Http\HttpException
for clearer usage.
Changes
- Dropped support for php7, php8 only from now on.
Fixes
Uri
could not deal with double ports, i.e.devvoh.com:8000:8000
and would setdevvoh.com:8000
as the host, causing issues. This is now fixed. The host is no longer allowed to have port numbers in it.
Changes
Uri
now accepts anull
value onwithPort()
,withUser()
,withPass()
,withPath()
,withQuery()
andwithFragment()
to reset these values properly.Uri
also accepts an empty array inwithQueryArray()
- Urls generated now always have a
/
between query parts, fragments and the actual url.
Changes
Uri
has gained 2 methods:getUriBaseString()
andgetUriRestString
. Now it's easily possible to get the base uri, or only the path/query/fragment side of one.
Changes
- Removed all
with
methods fromResponse
, replaced withset
methods. It's no longer immutable. - Traits have been renamed to
HasHeaders
andHasStatusCode
.HasHeaders
only provides get methods. - Methods on
SupportsOutputBuffers
have been suffixed withOutputBuffer(s)
for clairity when used within a class using it. Dispatcher
has been renamed toResponseDispatcher
becauseDispatcher
is kinda generic.ResponseDispatcher::setShouldTerminate()
has been removed.->dispatch()
now never terminates, and->dispatchAndTerminate()
always does.
Changes
- First release.