Lines Matching refs:function

117     'rewind' => function () use ($stream) {
223 the read() function of the PumpStream. The provided callable MUST return
235 For example, let's say we wanted to call a specific function each time the last
249 public function __construct(StreamInterface $stream, callable $cb)
255 public function read($length)
276 $eofStream = new EofCallbackStream($original, function () {
313 `public static function toString(MessageInterface $message): string`
325 `public static function bodySummary(MessageInterface $message, int $truncateAt = 120): string|null`
334 `public static function rewindBody(MessageInterface $message): void`
344 `public static function parseMessage(string $message): array`
355 `public static function parseRequestUri(string $path, array $headers): string`
362 `public static function parseRequest(string $message): Request`
369 `public static function parseResponse(string $message): Response`
376 `public static function parse(string|array $header): array`
381 contains a key, this function will inject a key with a '' string value.
386 `public static function normalize(string|array $header): array`
394 `public static function parse(string $str, int|bool $urlEncoding = true): array`
399 value pair will become an array. This function does not parse nested
406 `public static function build(array $params, int|false $encoding = PHP_QUERY_RFC3986): string`
410 This function can use the return value of `parse()` to build a query
411 string. This function does not modify the provided keys when an array is
417 `public static function caselessRemove(iterable<string> $keys, $keys, array $data): array`
424 `public static function copyToStream(StreamInterface $source, StreamInterface $dest, int $maxLen = …
432 `public static function copyToString(StreamInterface $stream, int $maxLen = -1): string`
440 `public static function hash(StreamInterface $stream, string $algo, bool $rawOutput = false): strin…
450 `public static function modifyRequest(RequestInterface $request, array $changes): RequestInterface`
468 `public static function readLine(StreamInterface $stream, int $maxLength = null): string`
475 `public static function streamFor(resource|string|null|int|float|bool|StreamInterface|callable|\Ite…
511 $generator = function ($bytes) {
523 `public static function tryFopen(string $filename, string $mode): resource`
527 When fopen fails, PHP normally raises a warning. This function adds an
533 `public static function uriFor(string|UriInterface $uri): UriInterface`
537 This function accepts a string or UriInterface and returns a
544 `public static function fromFilename(string $filename): string|null`
551 `public static function fromExtension(string $extension): string|null`
558 …nctions conflicting between global and local copies of the package. The function API will be remov…
606 `public static function isAbsolute(UriInterface $uri): bool`
612 `public static function isNetworkPathReference(UriInterface $uri): bool`
619 `public static function isAbsolutePathReference(UriInterface $uri): bool`
626 `public static function isRelativePathReference(UriInterface $uri): bool`
633 `public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null): bool`
645 `public static function isDefaultPort(UriInterface $uri): bool`
652 `public static function composeComponents($scheme, $authority, $path, $query, $fragment): string`
660 `public static function fromParts(array $parts): UriInterface`
662 Creates a URI from a hash of [`parse_url`](http://php.net/manual/en/function.parse-url.php) compone…
667 `public static function withQueryValue(UriInterface $uri, $key, $value): UriInterface`
675 `public static function withQueryValues(UriInterface $uri, array $keyValueArray): UriInterface`
682 `public static function withoutQueryValue(UriInterface $uri, $key): UriInterface`
695 `public static function resolve(UriInterface $base, UriInterface $rel): UriInterface`
701 `public static function removeDotSegments(string $path): string`
708 `public static function relativize(UriInterface $base, UriInterface $target): UriInterface`
734 `public static function normalize(UriInterface $uri, $flags = self::PRESERVING_NORMALIZATIONS): Uri…
804 `public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, $normalizations = self…