[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/guzzlehttp/ringphp/src/Client/ -> CurlFactory.php (summary)

(no description)

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

Defines 1 class

CurlFactory:: (13 methods):
  __invoke()
  createResponse()
  createErrorResponse()
  getOutputBody()
  getDefaultOptions()
  applyMethod()
  applyBody()
  addStreamingBody()
  applyHeaders()
  applyCustomCurlOptions()
  removeHeader()
  applyHandlerOptions()
  retryFailedRewind()


Class: CurlFactory  - X-Ref

Creates curl resources from a request

__invoke(array $request, $handle = null)   X-Ref
Creates a cURL handle, header resource, and body resource based on a
transaction.

param: array         $request Request hash
param: null|resource $handle  Optionally provide a curl handle to modify
return: array Returns an array of the curl handle, headers array, and

createResponse(callable $handler,array $request,array $response,array $headers,$body)   X-Ref
Creates a response hash from a cURL result.

param: callable $handler  Handler that was used.
param: array    $request  Request that sent.
param: array    $response Response hash to update.
param: array    $headers  Headers received during transfer.
param: resource $body     Body fopen response.
return: array

createErrorResponse(callable $handler,array $request,array $response)   X-Ref
No description

getOutputBody(array $request, array &$options)   X-Ref
No description

getDefaultOptions(array $request, array &$headers)   X-Ref
No description

applyMethod(array $request, array &$options)   X-Ref
No description

applyBody(array $request, array &$options)   X-Ref
No description

addStreamingBody(array $request, array &$options)   X-Ref
No description

applyHeaders(array $request, array &$options)   X-Ref
No description

applyCustomCurlOptions(array $config, array $options)   X-Ref
Takes an array of curl options specified in the 'curl' option of a
request's configuration array and maps them to CURLOPT_* options.

This method is only called when a  request has a 'curl' config setting.

param: array $config  Configuration array of custom curl option
param: array $options Array of existing curl options
return: array Returns a new array of curl options

removeHeader($name, array &$options)   X-Ref
Remove a header from the options array.

param: string $name    Case-insensitive header to remove
param: array  $options Array of options to modify

applyHandlerOptions(array $request, array &$options)   X-Ref
Applies an array of request client options to a the options array.

This method uses a large switch rather than double-dispatch to save on
high overhead of calling functions in PHP.

retryFailedRewind(callable $handler,array $request,array $response)   X-Ref
No description



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1