Lines Matching refs:to

30 $composed->addStream(Psr7\Utils::streamFor(' Above all listen to me'));
32 echo $composed; // abc, 123. Above all listen to me.
40 Provides a buffer stream that can be written to fill a buffer, and read
41 from to remove bytes from the buffer.
51 // false to writes. This is an indication that writers should slow down.
58 The CachingStream is used to allow seeking over previously read bytes on
60 entity body fails due to needing to rewind the stream (for example, resulting
109 to create a concrete class for a simple extension point.
118 echo 'About to rewind - ';
125 // Outputs: About to rewind - rewound!
133 Uses PHP's zlib.inflate filter to inflate deflate or gzipped content.
135 This stream decorator skips the first 10 bytes of the given stream to remove
136 the gzip header, converts the provided stream to a PHP stream resource,
138 to a Guzzle stream resource to be used as a Guzzle stream.
145 Lazily reads or writes to a file that is opened only after an IO operation
151 $stream = new Psr7\LazyOpenStream('/path/to/file', 'r');
163 LimitStream can be used to read a subset or slice of an existing stream object.
164 This can be useful for breaking a large file into smaller pieces to be sent in
174 // Limit the size of the body to 1024 bytes and start reading from byte 2048
220 data requested to read to the callable. The callable can choose to ignore
224 false when there is no more data to read.
229 Creating a stream decorator is very easy thanks to the
231 implement `Psr\Http\Message\StreamInterface` by proxying to an underlying
235 For example, let's say we wanted to call a specific function each time the last
269 This decorator could be added to any existing stream and used like so:
291 You can use the `GuzzleHttp\Psr7\StreamWrapper` class if you need to use a
294 Use the `GuzzleHttp\Psr7\StreamWrapper::getResource()` method to create a PHP
336 Attempts to rewind a message body and throws an exception on failure.
338 The body of the message will only be rewound if a call to `tell()`
410 This function can use the return value of `parse()` to build a query
444 This method reads the entire stream to calculate a rolling hash, based on
454 This method is useful for reducing the number of clones needed to mutate
470 Read a line from the stream up to the maximum allowed buffer length.
492 continuously called until the buffer is equal to the requested read size.
496 the object will be cast to a string and then a stream will be returned that
501 number of suggested bytes to read. The callable can return any number of
502 bytes, but MUST return `false` when there is no more data to return. The
509 $stream = GuzzleHttp\Psr7\Utils::streamFor(fopen('/path/to/file', 'r'));
553 Maps a file extensions to a mimetype.
558 The static API was first introduced in 1.7.0, in order to mitigate problems with functions conflict…
594 An absolute URI has a scheme. A relative reference is used to express a URI relative to another URI,
595 the base URI. Relative references can be divided into several forms according to
602 The following methods can be used to identify the type of the URI.
635 Whether the URI is a same-document reference. A same-document reference refers to a URI that is, as…
636 fragment component, identical to the base URI. When no base URI is given, only an empty URI referen…
641 Additional methods to work with URI components.
654 Composes a URI reference string from its various components according to
655 …3](https://tools.ietf.org/html/rfc3986#section-5.3). Usually this method does not need to be called
689 `GuzzleHttp\Psr7\UriResolver` provides methods to resolve a URI reference in the context of a base …
690 to [RFC 3986 Section 5](https://tools.ietf.org/html/rfc3986#section-5). This is for example also wh…
703 Removes dot segments from a path and returns the new path according to
710 Returns the target URI as a relative reference from the base URI. This method is the counterpart to
716 One use-case is to use the current request URI as base URI and then generate relative links in your…
717 to reduce the document size or offer self-contained downloadable document archives.
729 `GuzzleHttp\Psr7\UriNormalizer` provides methods to normalize and compare URIs according to
736 Returns a normalized URI. The scheme and host component are already normalized to lowercase per PSR…
738 of normalizations to apply. The following normalizations are available:
754 …not be created by URI producers and, when found in a URI, should be decoded to their corresponding…
761 Converts the empty path to "/" for http and https URIs.
768 … All of `file:/myfile`, `file:///myfile`, and `file://localhost/myfile` are equivalent according to
788 …Paths which include two or more adjacent slashes are converted to one. Webservers usually ignore d…
789 …and treat those URIs equivalent. But in theory those URIs do not need to be equivalent. So this no…
814 If you discover a security vulnerability within this package, please send an email to security@tide…
824 …kages are working with Tidelift to deliver commercial support and maintenance for the open source …