Summary of PSR-7 changes since Review 2 began.by weierophinney
Summary of changes since Review 2 Started
- Expanded section on expected structure returned by
several examples ranging from a flat structure to a nested structure with a
collection of files.
- Clarifications and simplification of URI ->
withUri()to indicate it MUST update the
Hostheader with the
value present in the URI provided (if any) UNLESS the
is boolean true.
getHeader*()method overrides in
RequestInterface, as they were
no longer relevant with the above changes.
MessageInterface::getHeaderLine()'s signature was altered to always return
a string (the string will be empty if the value is not defined). This removes
ambiguity in the return value.
ResponseInterface::getReasonPhrase()'s signature was altered to always
return a string (the string will be empty if the value is not defined). This
removes ambiguity in the return value.
ResponseInterface::withStatus()'s signature was altered to provide an empty
string as the default value of the
UriInterface::withPath()clarifies that both relative and domain-relative
paths (prefixed with
/) may be set.
UploadedFileInterface::move($path)was renamed to
clarify intent; additionally,
$targetPathwas clarified as being an absolute
path or a relative path, with resolution following PHP's rules when
Created 7 years ago | Updated 7 years ago