psr7 icon indicating copy to clipboard operation
psr7 copied to clipboard

A super lightweight PSR-7 implementation

Results 16 psr7 issues
Sort by recently updated
recently updated
newest added

When you specify a username and password using `Uri::withUserInfo()` these are not encoded for URL (see [here](https://github.com/elastic/elastic-transport-php/pull/7#issuecomment-1171086850)). For instance, if the username is `foo@` and the password is `bar` the...

At the moment, it's not possible to use [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) with this implementation. When calling StreamInterface::write, the content should be echoed and flushed immediately. In addition, the header would have...

Hi, According to [PSR-7 document](https://www.php-fig.org/psr/psr-7/#31-psrhttpmessagemessageinterface), it defines the `withHeader` signature below. ```php /** * Return an instance with the provided value replacing the specified header. * * While header names...

I've discovered this behavior (not to say "bug" yet) when tried ServerRequestInterface validation against the OpenAPI schema via the `league/openapi-psr7-validator` library. An OpenAPI schema may require a query parameter to...

## Detailed description I keep getting this error: `InvalidArgumentException: Header values must be RFC 7230 compatible strings.` It seems like I'm getting this error because of a Null value in...

help wanted

Hello all, since we have a dependency to `Nyholm/Psr7` in our project, we get an error with SOAP requests via `phpro/soap-client`. ``` PHP Fatal error: Uncaught ValueError: DOMDocument::loadXML(): Argument #1...

Here are three ways to create a `Nyholm\Psr7\Stream` that I would expect to yield the same result: This one works (because there's a type hint that casts to string): ```php...

See #131 and #133 for a problem with `strtolower` that never before showed up on tests. While working on #133 I also discovered that testUriComponentsGetEncodedProperly is locale dependent and started...

Is it an idea to make all of the final objects implement [`Serializable`](https://secure.php.net/manual/en/class.serializable.php)? One use-case is for HTTP caches to store request/response objects easily. I ran into this [today](https://github.com/Zegnat/php-webmention-endpoint-discovery/commit/b833c56682fc959c0a2ddd52920020f36f1a3697) and...

This issue may be a bit controversial, because the spec (PSR-17) appears to be incomplete on this point. The issue is with the state of the internal stream produced by...