Copied!

Provides basic proxies for handlers.

  • final
Cloneable Instantiable
Methods
public static wrapStreaming ( callable $default , callable $streaming ) : callable
 

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.

  • return
public static wrapSync ( callable $default , callable $sync ) : callable
 

Sends synchronous requests to a specific handler while sending all other
requests to another handler.

  • return
Methods
public static wrapStreaming ( callable $default , callable $streaming ) : callable
 

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.

  • return
public static wrapSync ( callable $default , callable $sync ) : callable
 

Sends synchronous requests to a specific handler while sending all other
requests to another handler.

  • return
© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only