Creates curl resources from a request
- final
Constants |
public GuzzleHttp |
public GuzzleHttp
|
Methods |
public __construct(int $maxHandles)
|
public __destruct() |
public create(Psr\Http\Message\RequestInterface $request, array $options) : GuzzleHttp |
public static finish(callable $handler, GuzzleHttp Completes a cURL transaction, either returning a response promise or a rejected promise.
|
public release(GuzzleHttp |
Properties |
private $handles = []
|
private $maxHandles = NULL
|
Methods |
private applyBody(Psr\Http\Message\RequestInterface $request, array $options, array $conf) : void |
private applyHandlerOptions(GuzzleHttp |
private applyHeaders(GuzzleHttp |
private applyMethod(GuzzleHttp |
private createHeaderFn(GuzzleHttp |
private static createRejection(GuzzleHttp |
private static finishError(callable $handler, GuzzleHttp
|
private getDefaultConf(GuzzleHttp
|
private static invokeStats(GuzzleHttp |
private removeHeader(string $name, array $options) : void Remove a header from the options array.
|
private static retryFailedRewind(callable $handler, GuzzleHttp This function ensures that a response was set on a transaction. If one was not set, then the request is retried if possible. This error typically means you are sending a payload, curl encountered a "Connection died, retrying a fresh connect" error, tried to rewind the stream, and then encountered a "necessary data rewind wasn't possible" error, causing the request to be sent through curl_multi_info_read() without an error status.
|
Methods |
private static createRejection(GuzzleHttp |
public static finish(callable $handler, GuzzleHttp Completes a cURL transaction, either returning a response promise or a rejected promise.
|
private static finishError(callable $handler, GuzzleHttp
|
private static invokeStats(GuzzleHttp |
private static retryFailedRewind(callable $handler, GuzzleHttp This function ensures that a response was set on a transaction. If one was not set, then the request is retried if possible. This error typically means you are sending a payload, curl encountered a "Connection died, retrying a fresh connect" error, tried to rewind the stream, and then encountered a "necessary data rewind wasn't possible" error, causing the request to be sent through curl_multi_info_read() without an error status.
|