Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`$response->getBody()->getContents()` 并不能保证拿到完整内容,PSR-7 里的原话: > Each stream instance will have various capabilities: it can be read-only, write-only, or read-write. It can also allow arbitrary random access (seeking forwards or backwards to any location), or only sequential access (for example in the case of a socket, pipe, or callback-based stream). > > Finally, StreamInterface defines a __toString() method to simplify retrieving or emitting the entire body contents at once. > -- https://www.php-fig.org/psr/psr-7/#13-streams 相关讨论: - Nyholm/psr7#176
- Loading branch information