function GuzzleHttp\choose_handler() : callable

Chooses and creates a default handler to use based on the environment.

The returned handler is not wrapped by any default middlewares.

  • throws RuntimeException if no viable Handler is available.
  • return

function GuzzleHttp\debug_resource( $value = NULL)

Returns a debug stream based on the provided variable.

  • return resource

function GuzzleHttp\default_ca_bundle() : string

Returns the default cacert bundle for the current system.

First, the openssl.cafile and curl.cainfo php.ini settings are checked.
If those settings are not configured, then the common locations for
bundles found on Red Hat, CentOS, Fedora, Ubuntu, Debian, FreeBSD, OS X
and Windows are checked. If any of these file locations are found on
disk, they will be utilized.

Note: the result of this function is cached for subsequent calls.

  • throws RuntimeException if no bundle can be found.

function GuzzleHttp\default_user_agent() : string

Get the default User-Agent string to use with Guzzle.

function GuzzleHttp\describe_type( $input) : string

Debug function used to describe the provided value type and class.

  • return string Returns a string containing the type of the variable and if a class is provided, the class name.

function GuzzleHttp\headers_from_lines(iterable $lines) : array

Parses an array of header lines into an associative array of headers.

    function GuzzleHttp\is_host_in_noproxy(string $host, array $noProxyArray) : bool

    Returns true if the provided host matches any of the no proxy areas.

    This method will strip a port from the host if it is present. Each pattern
    can be matched with an exact match (e.g., "" == "") or a
    partial match: (e.g., "" == "" and "" ==
    "", but "" != "").

    Areas are matched in the following cases:

    1. "*" (without quotes) always matches any hosts.
    2. An exact match.
    3. The area starts with "." and the area is the last part of the host. e.g.
      '' will match any host that ends with ''.

    function GuzzleHttp\json_decode(string $json, bool $assoc = false, int $depth = 512, int $options = 0)

    Wrapper for json_decode that throws when an error occurs.

    function GuzzleHttp\json_encode( $value, int $options = 0, int $depth = 512) : string

    Wrapper for JSON encoding that throws when an error occurs.

    function GuzzleHttp\normalize_header_keys(array $headers) : array

    Creates an associative array of lowercase header names to the actual
    header casing.

    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only