Lines Matching refs:a

3 This repository contains a full [PSR-7](http://www.php-fig.org/psr/psr-7/)
13 This package comes with a number of stream implementations and stream
26 $a = Psr7\Utils::streamFor('abc, ');
28 $composed = new Psr7\AppendStream([$a, $b]);
40 Provides a buffer stream that can be written to fill a buffer, and read
43 This stream returns a "hwm" metadata value that tells upstream consumers
59 non-seekable streams. This can be useful when transferring a non-seekable
61 from a redirect). Data that is read from the remote stream will be buffered in
62 a PHP temp stream so that previously read bytes are cached first in memory,
106 Compose stream implementations based on a hash of functions.
108 Allows for easy testing and extension of a provided stream without needing
109 to create a concrete class for a simple extension point.
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
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
187 Stream that when read returns bytes for a streaming multipart or
195 NoSeekStream wraps a stream and does not allow seeking.
217 Provides a read only stream that pumps data from a PHP callable.
229 Creating a stream decorator is very easy thanks to the
235 For example, let's say we wanted to call a specific function each time the last
236 byte is read from a stream. This could be implemented by overriding the
291 You can use the `GuzzleHttp\Psr7\StreamWrapper` class if you need to use a
292 PSR-7 stream as a PHP stream resource.
294 Use the `GuzzleHttp\Psr7\StreamWrapper::getResource()` method to create a PHP
295 stream from a PSR-7 stream.
327 Get a short summary of the message body.
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()`
339 returns a value other than `0`.
350 array values, and a "body" key containing the body of the message.
357 Constructs a URI for an HTTP request message.
364 Parses a request message string into a request object.
371 Parses a response message string into a response object.
380 of the header. When a parameter does not contain a value, but just
381 contains a key, this function will inject a key with a '' string value.
396 Parse a query string into an associative array.
400 PHP style arrays into an associative array (e.g., `foo[a]=1&foo[b]=2`
401 will be parsed into `['foo[a]' => '1', 'foo[b]' => '2'])`.
408 Build a query string from an array of key value pairs.
410 This function can use the return value of `parse()` to build a query
426 Copy the contents of a stream into another stream until the given number
434 Copy the contents of a stream into a string until the given number of
442 Calculate a hash of a stream.
444 This method reads the entire stream to calculate a rolling hash, based on
452 Clone and modify a request with the given changes.
455 a message.
470 Read a line from the stream up to the maximum allowed buffer length.
477 Create a new stream based on the input type.
487 - `string`: Creates a stream object that uses the given string as the contents.
488 - `resource`: Creates a stream object that wraps the given PHP stream resource.
489 - `Iterator`: If the provided value implements `Iterator`, then a read-only
491 stream is read from, data from the iterator will fill a buffer and will be
496 the object will be cast to a string and then a stream will be returned that
499 - `callable` When a callable is passed, a read-only stream object will be
525 Safely opens a PHP stream resource using a filename.
527 When fopen fails, PHP normally raises a warning. This function adds an
535 Returns a UriInterface for the given value.
537 This function accepts a string or UriInterface and returns a
538 UriInterface for the given value. If the value is already a
546 Determines the mimetype of a file by looking at its extension.
553 Maps a file extensions to a mimetype.
593 An instance of `Psr\Http\Message\UriInterface` can either be an absolute URI or a relative referenc…
594 An absolute URI has a scheme. A relative reference is used to express a URI relative to another URI,
608 Whether the URI is absolute, i.e. it has a scheme.
614 Whether the URI is a network-path reference. A relative reference that begins with two slash charac…
621 Whether the URI is a absolute-path reference. A relative reference that begins with a single slash …
628 Whether the URI is a relative-path reference. A relative reference that does not begin with a slash…
629 termed a relative-path reference.
635 Whether the URI is a same-document reference. A same-document reference refers to a URI that is, as…
637 (apart from its fragment) is considered a same-document reference.
654 Composes a URI reference string from its various components according to
662 Creates a URI from a hash of [`parse_url`](http://php.net/manual/en/function.parse-url.php) compone…
669 Creates a new URI with a specific query string value. Any existing query string values that exactly…
671 key without a value, e.g. "key" instead of "key=value".
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…
689 `GuzzleHttp\Psr7\UriResolver` provides methods to resolve a URI reference in the context of a base …
691 do when resolving a link in a website based on the current request URI.
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
710 Returns the target URI as a relative reference from the base URI. This method is the counterpart 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 …riResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/…
736 Returns a normalized URI. The scheme and host component are already normalized to lowercase per PSR…
737 …dds additional normalizations that can be configured with the `$flags` parameter which is a bitmask
746 …All letters within a percent-encoding triplet (e.g., "%3A") are case-insensitive, and should be ca…
748 Example: `http://example.org/a%c2%b1b` → `http://example.org/a%C2%B1b`
754 …not be created by URI producers and, when found in a URI, should be decoded to their corresponding…
784 Example: `http://example.org/../a/b/../c/./d.html` → `http://example.org/a/c/d.html`
796 …arameters with their values in alphabetical order. However, the order of parameters in a URI may be
814a security vulnerability within this package, please send an email to security@tidelift.com. All s…