Lines Matching refs:new
28 $composed = new Psr7\AppendStream([$a, $b]);
52 $buffer = new Psr7\BufferStream(1024);
69 $stream = new Psr7\CachingStream($original);
95 $dropping = new Psr7\DroppingStream($stream, 10);
151 $stream = new Psr7\LazyOpenStream('/path/to/file', 'r');
175 $stream = new Psr7\LimitStream($original, 1024, 2048);
201 $noSeek = new Psr7\NoSeekStream($original);
276 $eofStream = new EofCallbackStream($original, function () {
318 $request = new GuzzleHttp\Psr7\Request('GET', 'http://example.com');
477 Create a new stream based on the input type.
669 Creates a new URI with a specific query string value. Any existing query string values that exactly…
677 Creates a new URI with multiple query string values. It has the same behavior as `withQueryValue()`…
684 Creates a new URI with a specific query string value removed. Any existing query string values that…
697 Converts the relative URI into a new URI that is resolved against the base URI.
703 Removes dot segments from a path and returns the new path according to
720 $base = new Uri('http://example.com/a/b/');
721 echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'.
722 echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'.
723 echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'.
724 echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org…