[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/guzzlehttp/guzzle/src/Handler/ -> Proxy.php (summary)

(no description)

File Size: 55 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Proxy:: (2 methods):
  wrapSync()
  wrapStreaming()


Class: Proxy  - X-Ref

Provides basic proxies for handlers.

wrapSync(callable $default,callable $sync)   X-Ref
Sends synchronous requests to a specific handler while sending all other
requests to another handler.

param: callable $default Handler used for normal responses
param: callable $sync    Handler used for synchronous responses.
return: callable Returns the composed handler.

wrapStreaming(callable $default,callable $streaming)   X-Ref
Sends streaming requests to a streaming compatible handler while sending
all other requests to a default handler.

This, for example, could be useful for taking advantage of the
performance benefits of curl while still supporting true streaming
through the StreamHandler.

param: callable $default   Handler used for non-streaming responses
param: callable $streaming Handler used for streaming responses
return: callable Returns the composed handler.



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1