Function GuzzleHttp\Psr7\() does not exist

Function GuzzleHttp\Psr7\() does not exist

Function GuzzleHttp\Psr7\() does not exist

Function GuzzleHttp\Psr7\() does not exist

Function GuzzleHttp\Psr7\() does not exist

Function GuzzleHttp\Psr7\() does not exist

function GuzzleHttp\Psr7\_caseless_remove( $keys, array $data)
 
  • internal

function GuzzleHttp\Psr7\_parse_message( $message)
 

Parses an HTTP message into an associative array.

The array contains the "start-line" key containing the start line of
the message, "headers" key containing an associative array of header
array values, and a "body" key containing the body of the message.

  • return array
  • internal

function GuzzleHttp\Psr7\_parse_request_uri( $path, array $headers)
 

Constructs a URI for an HTTP request message.

  • return string
  • internal

function GuzzleHttp\Psr7\build_query(array $params, $encoding = 2)
 

Build a query string from an array of key value pairs.

This function can use the return value of parse_query() to build a query
string. This function does not modify the provided keys when an array is
encountered (like http_build_query would).

  • return string

function GuzzleHttp\Psr7\copy_to_stream(Psr\Http\Message\StreamInterface $source, Psr\Http\Message\StreamInterface $dest, $maxLen = -1)
 

Copy the contents of a stream into another stream until the given number
of bytes have been read.

  • throws RuntimeException on error.

function GuzzleHttp\Psr7\copy_to_string(Psr\Http\Message\StreamInterface $stream, $maxLen = -1)
 

Copy the contents of a stream into a string until the given number of
bytes have been read.

  • return string
  • throws RuntimeException on error.

function GuzzleHttp\Psr7\get_message_body_summary(Psr\Http\Message\MessageInterface $message, $truncateAt = 120)
 

Get a short summary of the message body

Will return null if the response is not printable.

  • return null|string

function GuzzleHttp\Psr7\hash(Psr\Http\Message\StreamInterface $stream, $algo, $rawOutput = false)
 

Calculate a hash of a Stream

  • return string Returns the hash of the stream
  • throws RuntimeException on error.

function GuzzleHttp\Psr7\mimetype_from_extension( $extension)
 

Maps a file extensions to a mimetype.


function GuzzleHttp\Psr7\mimetype_from_filename( $filename)
 

Determines the mimetype of a file by looking at its extension.

  • return null|string

function GuzzleHttp\Psr7\modify_request(Psr\Http\Message\RequestInterface $request, array $changes)
 

Clone and modify a request with the given changes.

The changes can be one of:

  • method: (string) Changes the HTTP method.
  • set_headers: (array) Sets the given headers.
  • remove_headers: (array) Remove the given headers.
  • body: (mixed) Sets the given body.
  • uri: (UriInterface) Set the URI.
  • query: (string) Set the query string value of the URI.
  • version: (string) Set the protocol version.
  • return RequestInterface

function GuzzleHttp\Psr7\normalize_header( $header)
 

Converts an array of header values that may contain comma separated
headers into an array of headers with no comma separated values.

  • return array Returns the normalized header field values.

function GuzzleHttp\Psr7\parse_header( $header)
 

Parse an array of header values containing ";" separated data into an
array of associative arrays representing the header key value pair
data of the header. When a parameter does not contain a value, but just
contains a key, this function will inject a key with a '' string value.

  • return array Returns the parsed header values.

function GuzzleHttp\Psr7\parse_query( $str, $urlEncoding = true)
 

Parse a query string into an associative array.

If multiple values are found for the same key, the value of that key
value pair will become an array. This function does not parse nested
PHP style arrays into an associative array (e.g., foo[a]=1&foo[b]=2 will
be parsed into ['foo[a]' => '1', 'foo[b]' => '2']).

  • return array

function GuzzleHttp\Psr7\parse_request( $message)
 

Parses a request message string into a request object.


function GuzzleHttp\Psr7\parse_response( $message)
 

Parses a response message string into a response object.


function GuzzleHttp\Psr7\readline(Psr\Http\Message\StreamInterface $stream, $maxLength = NULL)
 

Read a line from the stream up to the maximum allowed buffer length

  • return string

function GuzzleHttp\Psr7\rewind_body(Psr\Http\Message\MessageInterface $message)
 

Attempts to rewind a message body and throws an exception on failure.

The body of the message will only be rewound if a call to tell() returns a
value other than 0.

  • throws RuntimeException

function GuzzleHttp\Psr7\str(Psr\Http\Message\MessageInterface $message)
 

Returns the string representation of an HTTP message.

  • return string

function GuzzleHttp\Psr7\stream_for( $resource = '', array $options = [])
 

Create a new stream based on the input type.

Options is an associative array that can contain the following keys:

  • metadata: Array of custom metadata.
  • size: Size of the stream.
  • return StreamInterface
  • throws InvalidArgumentException if the $resource arg is not valid.

function GuzzleHttp\Psr7\try_fopen( $filename, $mode)
 

Safely opens a PHP stream resource using a filename.

When fopen fails, PHP normally raises a warning. This function adds an
error handler that checks for errors and throws an exception instead.

  • return resource
  • throws RuntimeException if the file cannot be opened

function GuzzleHttp\Psr7\uri_for( $uri)
 

Returns a UriInterface for the given value.

This function accepts a string or {@see \Psr\Http\Message\UriInterface} and
returns a UriInterface for the given value. If the value is already a
UriInterface, it is returned as-is.

  • return UriInterface
  • throws InvalidArgumentException
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only