[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 364 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Core:: (15 methods):
callArray()
headerLines()
header()
firstHeader()
hasHeader()
headersFromLines()
removeHeader()
setHeader()
url()
body()
rewindBody()
describeType()
doSleep()
proxy()
getDebugResource()
callArray(array $functions) X-Ref |
Returns a function that calls all of the provided functions, in order, passing the arguments provided to the composed function to each function. param: callable[] $functions Array of functions to proxy to. return: callable |
headerLines($message, $header) X-Ref |
Gets an array of header line values from a message for a specific header This method searches through the "headers" key of a message for a header using a case-insensitive search. param: array $message Request or response hash. param: string $header Header to retrieve return: array |
header($message, $header) X-Ref |
Gets a header value from a message as a string or null This method searches through the "headers" key of a message for a header using a case-insensitive search. The lines of the header are imploded using commas into a single string return value. param: array $message Request or response hash. param: string $header Header to retrieve return: string|null Returns the header string if found, or null if not. |
firstHeader($message, $header) X-Ref |
Returns the first header value from a message as a string or null. If a header line contains multiple values separated by a comma, then this function will return the first value in the list. param: array $message Request or response hash. param: string $header Header to retrieve return: string|null Returns the value as a string if found. |
hasHeader($message, $header) X-Ref |
Returns true if a message has the provided case-insensitive header. param: array $message Request or response hash. param: string $header Header to check return: bool |
headersFromLines($lines) X-Ref |
Parses an array of header lines into an associative array of headers. param: array $lines Header lines array of strings in the following return: array |
removeHeader(array $message, $header) X-Ref |
Removes a header from a message using a case-insensitive comparison. param: array $message Message that contains 'headers' param: string $header Header to remove return: array |
setHeader(array $message, $header, array $value) X-Ref |
Replaces any existing case insensitive headers with the given value. param: array $message Message that contains 'headers' param: string $header Header to set. param: array $value Value to set. return: array |
url(array $request) X-Ref |
Creates a URL string from a request. If the "url" key is present on the request, it is returned, otherwise the url is built up based on the scheme, host, uri, and query_string request values. param: array $request Request to get the URL from return: string Returns the request URL as a string. |
body($message) X-Ref |
Reads the body of a message into a string. param: array|FutureArrayInterface $message Array containing a "body" key return: null|string Returns the body as a string or null if not set. |
rewindBody($message) X-Ref |
Rewind the body of the provided message if possible. param: array $message Message that contains a 'body' field. return: bool Returns true on success, false on failure |
describeType($input) X-Ref |
Debug function used to describe the provided value type and class. param: mixed $input return: string Returns a string containing the type of the variable and |
doSleep(array $request) X-Ref |
Sleep for the specified amount of time specified in the request's ['client']['delay'] option if present. This function should only be used when a non-blocking sleep is not possible. param: array $request Request to sleep |
proxy(FutureArrayInterface $future,callable $onFulfilled = null,callable $onRejected = null,callable $onProgress = null) X-Ref |
Returns a proxied future that modifies the dereferenced value of another future using a promise. param: FutureArrayInterface $future Future to wrap with a new future param: callable $onFulfilled Invoked when the future fulfilled param: callable $onRejected Invoked when the future rejected param: callable $onProgress Invoked when the future progresses return: FutureArray |
getDebugResource($value = null) X-Ref |
Returns a debug stream based on the provided variable. param: mixed $value Optional value return: resource |
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |