Uri::resolve
and Uri::removeDotSegments
by removing
calls to trigger_error
when deprecated methods are invoked.Stream::read
when length parameter <= 0.copy_to_stream
reads bytes in chunks instead of maxLen
into memory.ServerRequest::getUriFromGlobals
when Host
header contains port.ServerRequest::getUriFromGlobals
returns a URI in absolute form.parse_response
to parse a response without delimiting space and reason.(new Uri)->withPath('foo')->withHost('example.com')
will throw an exception
because the path of a URI with an authority must start with a slash “/” or be empty(new Uri())->withScheme('http')
will return 'http://localhost'
file
scheme and empty host.Uri::isDefaultPort
Uri::isAbsolute
Uri::isNetworkPathReference
Uri::isAbsolutePathReference
Uri::isRelativePathReference
Uri::isSameDocumentReference
Uri::composeComponents
UriNormalizer::normalize
UriNormalizer::isEquivalent
UriResolver::relativize
Uri::resolve
in favor of UriResolver::resolve
Uri::removeDotSegments
in favor of UriResolver::removeDotSegments
Uri::__toString
for network path references, e.g. //example.org
.'0'
in a lot of places,
e.g. as a user info password.Uri::withAddedHeader
to correctly merge headers with different case.Uri::withAddedHeader
. Header values may
be surrounded by whitespace which should be ignored according to RFC 7230
Section 3.2.4. This does not apply to header names.Uri::withAddedHeader
with an array of header values.Uri::resolve
when base path has no slash and handling of fragment.Uri::with(out)QueryValue
so one can pass the
key/value both in encoded as well as decoded form to those methods. This is
consistent with withPath, withQuery etc.ServerRequest::withoutAttribute
when attribute value is null.GuzzleHttp\Psr7\CachingStream
for seeking forward on remote
streams, which can sometimes return fewer bytes than requested with fread
."0"
is now properly added to a response.parse_request
.multipart/form-data
headers are now overridden case-insensitively.Initial release.
Currently unsupported:
Psr\Http\Message\ServerRequestInterface
Psr\Http\Message\UploadedFileInterface