* HttpDeflateStream class constructor * @link https://php.net/manual/en/function.httpdeflatestream-construct.php * @param int $flags [optional]
* initialization flags *
*/ public function __construct($flags = null) {} /** * (PECL pecl_http >= 0.21.0)* data to deflate *
* @return string|false deflated data on success or false on failure. */ public function update($data) {} /** * (PECL pecl_http >= 0.21.0)* more data to deflate *
* @return string|false some deflated data as string on success or false on failure. */ public function flush($data = null) {} /** * (PECL pecl_http >= 0.21.0)* data to deflate *
* @return string the final part of deflated data. */ public function finish($data = null) {} /** * (PECL pecl_http >= 1.4.0)* initialization flags *
* @param string $class_name [optional]* name of a subclass of HttpDeflateStream *
* @return HttpDeflateStream */ public static function factory($flags = null, $class_name = null) {} } /** * @link https://php.net/manual/en/class.httpinflatestream.php */ class HttpInflateStream { public const FLUSH_NONE = 0; public const FLUSH_SYNC = 1048576; public const FLUSH_FULL = 2097152; /** * (PECL pecl_http >= 1.0.0)* initialization flags *
*/ public function __construct($flags = null) {} /** * (PECL pecl_http >= 0.21.0)* data to inflate *
* @return string|false inflated data on success or false on failure. */ public function update($data) {} /** * (PECL pecl_http >= 0.21.0)* more data to inflate *
* @return string|false some inflated data as string on success or false on failure. */ public function flush($data = null) {} /** * (PECL pecl_http >= 0.21.0)* data to inflate *
* @return string the final part of inflated data. */ public function finish($data = null) {} /** * (PECL pecl_http >= 1.4.0)* initialization flags *
* @param string $class_name [optional]* name of a subclass of HttpInflateStream *
* @return HttpInflateStream */ public static function factory($flags = null, $class_name = null) {} } /** * @link https://php.net/manual/en/class.httpmessage.php */ class HttpMessage implements Countable, Serializable, Iterator { public const TYPE_NONE = 0; public const TYPE_REQUEST = 1; public const TYPE_RESPONSE = 2; protected $type; protected $body; protected $requestMethod; protected $requestUrl; protected $responseStatus; protected $responseCode; protected $httpVersion; protected $headers; protected $parentMessage; /** * (PECL pecl_http >= 0.10.0)* a single or several consecutive HTTP messages *
*/ public function __construct($message = null) {} /** * (PECL pecl_http >= 0.10.0)* the new body of the message *
* @return void */ public function setBody($body) {} /** * (PECL pecl_http >= 1.1.0)* header name *
* @return string|null the header value on success or NULL if the header does not exist. */ #[Pure] public function getHeader($header) {} /** * (PECL pecl_http >= 0.10.0)* associative array containing the new HTTP headers, which will replace all previous HTTP headers of the message *
* @return void */ public function setHeaders(array $header) {} /** * (PECL pecl_http >= 0.10.0)* associative array containing the additional HTTP headers to add to the messages existing headers *
* @param bool $append [optional]* if true, and a header with the same name of one to add exists already, this respective * header will be converted to an array containing both header values, otherwise * it will be overwritten with the new header value *
* @return void */ public function addHeaders(array $headers, $append = null) {} /** * (PECL pecl_http >= 0.10.0)* the HttpMessage::TYPE *
* @return void */ public function setType($type) {} #[Pure] public function getInfo() {} /** * @param $http_info */ public function setInfo($http_info) {} /** * (PECL pecl_http >= 0.10.0)* HTTP response code *
* @return bool TRUE on success, or FALSE if the message is not of type * HttpMessage::TYPE_RESPONSE or the response code is out of range (100-510). */ public function setResponseCode($code) {} /** * (PECL pecl_http >= 0.23.0)* the response status text *
* @return bool TRUE on success or FALSE if the message is not of type * HttpMessage::TYPE_RESPONSE. */ public function setResponseStatus($status) {} /** * (PECL pecl_http >= 0.10.0)* the request method name *
* @return bool TRUE on success, or FALSE if the message is not of type * HttpMessage::TYPE_REQUEST or an invalid request method was supplied. */ public function setRequestMethod($method) {} /** * (PECL pecl_http >= 0.21.0)* the request URL *
* @return bool TRUE on success, or FALSE if the message is not of type * HttpMessage::TYPE_REQUEST or supplied URL was empty. */ public function setRequestUrl($url) {} /** * (PECL pecl_http >= 0.10.0)* the HTTP protocol version *
* @return bool TRUE on success, or FALSE if supplied version is out of range (1.0/1.1). */ public function setHttpVersion($version) {} /** * (PECL pecl_http >= 1.0.0)* the magic.mime database to use *
* @param int $magic_mode [optional]* flags for libmagic *
* @return string|false the guessed content type on success or false on failure. */ public function guessContentType($magic_file, $magic_mode = null) {} /** * (PECL pecl_http >= 0.10.0)* specifies whether the returned string should also contain any parent messages *
* @return string the message as string. */ public function toString($include_parent = null) {} /** * (PECL pecl_http >= 0.22.0)* a single or several consecutive HTTP messages *
* @param string $class_name [optional]* a class extending HttpMessage *
* @return HttpMessage|null an HttpMessage object on success or NULL on failure. */ public static function factory($raw_message = null, $class_name = null) {} /** * (PECL pecl_http 0.10.0-1.3.3)* a single or several consecutive HTTP messages *
* @param string $class_name [optional]* a class extending HttpMessage *
* @return HttpMessage|null an HttpMessage object on success or NULL on failure. */ public static function fromString($raw_message = null, $class_name = null) {} /** * (PECL pecl_http >= 1.5.0)* The message type. See HttpMessage type constants. *
* @param string $class_name [optional]* a class extending HttpMessage *
* @return HttpMessage|null an HttpMessage object on success or NULL on failure. */ public static function fromEnv($message_type, $class_name = null) {} /** * (PECL pecl_http >= 0.22.0)* HttpMessage object to prepend *
* @param bool $top [optional]* whether to prepend to the top most or right this message *
* @return void */ public function prepend(HttpMessage $message, $top = null) {} /** * (PECL pecl_http >= 0.23.0)* whether to operate on $_GET and * $_SERVER['QUERY_STRING'] *
* @param mixed $add [optional]* additional/initial query string parameters *
*/ final public function __construct($global = null, $add = null) {} /** * (PECL pecl_http >= 0.22.0)* key of the query string param to retrieve *
* @param mixed $type [optional]* which variable type to enforce *
* @param mixed $defval [optional]* default value if key does not exist *
* @param bool $delete [optional]* whether to remove the key/value pair from the query string *
* @return mixed the value of the query string param or the whole query string if no key was specified on success or defval if key does not exist. */ #[Pure] public function get($key = null, $type = null, $defval = null, $delete = null) {} /** * (PECL pecl_http >= 0.22.0)* query string params to add *
* @return string the current query string. */ public function set($params) {} /** * (PECL pecl_http >= 1.1.0)* query string params to add *
* @return HttpQueryString a new HttpQueryString object */ public function mod($params) {} /** * @param $name * @param $defval [optional] * @param $delete [optional] */ #[Pure] public function getBool($name, $defval, $delete) {} /** * @param $name * @param $defval [optional] * @param $delete [optional] */ #[Pure] public function getInt($name, $defval, $delete) {} /** * @param $name * @param $defval [optional] * @param $delete [optional] */ #[Pure] public function getFloat($name, $defval, $delete) {} /** * @param $name * @param $defval [optional] * @param $delete [optional] */ #[Pure] public function getString($name, $defval, $delete) {} /** * @param $name * @param $defval [optional] * @param $delete [optional] */ #[Pure] public function getArray($name, $defval, $delete) {} /** * @param $name * @param $defval [optional] * @param $delete [optional] */ #[Pure] public function getObject($name, $defval, $delete) {} /** * @param $global [optional] * @param $params [optional] * @param $class_name [optional] */ public static function factory($global, $params, $class_name) {} /** * (PECL pecl_http >= 0.25.0)* whether to operate on $_GET and * $_SERVER['QUERY_STRING'] *
* @return HttpQueryString always the same HttpQueryString instance regarding the global setting. */ public static function singleton($global = null) {} /** * (PECL pecl_http >= 0.25.0)* input encoding *
* @param string $oe* output encoding *
* @return bool true on success or false on failure. */ public function xlate($ie, $oe) {} /** * String representation of object * @link https://php.net/manual/en/serializable.serialize.php * @return string the string representation of the object or null * @since 5.1.0 */ public function serialize() {} /** * Offset to retrieve * @link https://php.net/manual/en/arrayaccess.offsetget.php * @param mixed $offset* The offset to retrieve. *
* @return mixed Can return all value types. * @since 5.0.0 */ public function offsetGet($offset) {} /** * Constructs the object * @link https://php.net/manual/en/serializable.unserialize.php * @param string $serialized* The string representation of the object. *
* @return void * @since 5.1.0 */ public function unserialize($serialized) {} /** * Whether a offset exists * @link https://php.net/manual/en/arrayaccess.offsetexists.php * @param mixed $offset* An offset to check for. *
* @return bool true on success or false on failure. * ** The return value will be casted to boolean if non-boolean was returned. * @since 5.0.0 */ public function offsetExists($offset) {} /** * Offset to set * @link https://php.net/manual/en/arrayaccess.offsetset.php * @param mixed $offset
* The offset to assign the value to. *
* @param mixed $value* The value to set. *
* @return void * @since 5.0.0 */ public function offsetSet($offset, $value) {} /** * Offset to unset * @link https://php.net/manual/en/arrayaccess.offsetunset.php * @param mixed $offset* The offset to unset. *
* @return void * @since 5.0.0 */ public function offsetUnset($offset) {} } /** * @link https://php.net/manual/en/class.httprequest.php */ class HttpRequest { public const METH_GET = 1; public const METH_HEAD = 2; public const METH_POST = 3; public const METH_PUT = 4; public const METH_DELETE = 5; public const METH_OPTIONS = 6; public const METH_TRACE = 7; public const METH_CONNECT = 8; public const METH_PROPFIND = 9; public const METH_PROPPATCH = 10; public const METH_MKCOL = 11; public const METH_COPY = 12; public const METH_MOVE = 13; public const METH_LOCK = 14; public const METH_UNLOCK = 15; public const METH_VERSION_CONTROL = 16; public const METH_REPORT = 17; public const METH_CHECKOUT = 18; public const METH_CHECKIN = 19; public const METH_UNCHECKOUT = 20; public const METH_MKWORKSPACE = 21; public const METH_UPDATE = 22; public const METH_LABEL = 23; public const METH_MERGE = 24; public const METH_BASELINE_CONTROL = 25; public const METH_MKACTIVITY = 26; public const METH_ACL = 27; public const VERSION_1_0 = 1; public const VERSION_1_1 = 2; public const VERSION_NONE = 0; public const VERSION_ANY = 0; public const SSL_VERSION_TLSv1 = 1; public const SSL_VERSION_SSLv2 = 2; public const SSL_VERSION_SSLv3 = 3; public const SSL_VERSION_ANY = 0; public const IPRESOLVE_V4 = 1; public const IPRESOLVE_V6 = 2; public const IPRESOLVE_ANY = 0; public const AUTH_BASIC = 1; public const AUTH_DIGEST = 2; public const AUTH_NTLM = 8; public const AUTH_GSSNEG = 4; public const AUTH_ANY = -1; public const PROXY_SOCKS4 = 4; public const PROXY_SOCKS5 = 5; public const PROXY_HTTP = 0; private $options; private $postFields; private $postFiles; private $responseInfo; private $responseMessage; private $responseCode; private $responseStatus; private $method; private $url; private $contentType; private $requestBody; private $queryData; private $putFile; private $putData; private $history; public $recordHistory; /** * (PECL pecl_http >= 0.10.0)* the target request url *
* @param int $request_method [optional]* the request method to use *
* @param null|array $options [optional]* an associative array with request options *
*/ public function __construct($url = null, $request_method = null, ?array $options = null) {} /** * (PECL pecl_http >= 0.10.0)* an associative array, which values will overwrite the * currently set request options; * if empty or omitted, the options of the HttpRequest object will be reset *
* @return bool true on success or false on failure. */ public function setOptions(?array $options = null) {} /** * (PECL pecl_http >= 0.10.0)* an associative array containing any SSL specific options; * if empty or omitted, the SSL options will be reset *
* @return bool true on success or false on failure. */ public function setSslOptions(?array $options = null) {} /** * (PECL pecl_http >= 0.10.0)* an associative array as parameter containing additional SSL specific options *
* @return bool true on success or false on failure. */ public function addSslOptions(array $option) {} /** * (PECL pecl_http >= 0.10.0)* an associative array as parameter containing additional header name/value pairs *
* @return bool true on success or false on failure. */ public function addHeaders(array $headers) {} /** * (PECL pecl_http >= 0.10.0)* an associative array as parameter containing header name/value pairs; * if empty or omitted, all previously set headers will be unset *
* @return bool true on success or false on failure. */ public function setHeaders(?array $headers = null) {} /** * (PECL pecl_http >= 0.10.0)* an associative array containing any cookie name/value pairs to add *
* @return bool true on success or false on failure. */ public function addCookies(array $cookies) {} /** * (PECL pecl_http >= 0.10.0)* an associative array as parameter containing cookie name/value pairs; * if empty or omitted, all previously set cookies will be unset *
* @return bool true on success or false on failure. */ public function setCookies(?array $cookies = null) {} /** * (PECL pecl_http >= 1.0.0)* whether only session cookies should be reset (needs libcurl >= v7.15.4, else libcurl >= v7.14.1) *
* @return bool true on success or false on failure. */ public function resetCookies($session_only = null) {} public function flushCookies() {} /** * (PECL pecl_http >= 0.10.0)* the request method to use *
* @return bool true on success or false on failure. */ public function setMethod($request_method) {} /** * (PECL pecl_http >= 0.10.0)* the request url *
* @return bool true on success or false on failure. */ public function setUrl($url) {} /** * (PECL pecl_http >= 0.10.0)* the content type of the request (primary/secondary) *
* @return bool TRUE on success, or FALSE if the content type does not seem to * contain a primary and a secondary part. */ public function setContentType($content_type) {} /** * (PECL pecl_http >= 0.10.0)* a string or associative array parameter containing the pre-encoded * query string or to be encoded query fields; * if empty, the query data will be unset *
* @return bool true on success or false on failure. */ public function setQueryData($query_data) {} /** * (PECL pecl_http >= 0.10.0)* an associative array as parameter containing the query fields to add *
* @return bool true on success or false on failure. */ public function addQueryData(array $query_params) {} /** * (PECL pecl_http >= 0.10.0)* an associative array containing the post fields; * if empty, the post data will be unset *
* @return bool true on success or false on failure. */ public function setPostFields(array $post_data) {} /** * (PECL pecl_http >= 0.10.0)* an associative array as parameter containing the post fields *
* @return bool true on success or false on failure. */ public function addPostFields(array $post_data) {} /** * @param $request_body_data [optional] */ public function setBody($request_body_data) {} #[Pure] public function getBody() {} /** * @param $request_body_data */ public function addBody($request_body_data) {} /** * (PECL pecl_http 0.14.0-1.4.1)* raw post data *
* @return bool true on success or false on failure. */ public function setRawPostData($raw_post_data = null) {} /** * (PECL pecl_http 0.14.0-1.4.1)* the raw post data to concatenate *
* @return bool true on success or false on failure. */ public function addRawPostData($raw_post_data) {} /** * (PECL pecl_http >= 0.10.0)* an array containing the files to post; * if empty, the post files will be unset *
* @return bool true on success or false on failure. */ public function setPostFiles(array $post_files) {} /** * (PECL pecl_http >= 0.10.0)* the form element name *
* @param string $file* the path to the file *
* @param string $content_type [optional]* the content type of the file *
* @return bool TRUE on success, or FALSE if the content type seems not to contain a * primary and a secondary content type part. */ public function addPostFile($name, $file, $content_type = null) {} /** * (PECL pecl_http >= 0.10.0)* the path to the file to send; * if empty or omitted the put file will be unset *
* @return bool true on success or false on failure. */ public function setPutFile($file = null) {} /** * (PECL pecl_http >= 0.10.0)* the data to upload *
* @return bool true on success or false on failure. */ public function setPutData($put_data = null) {} /** * (PECL pecl_http >= 0.25.0)* the data to concatenate *
* @return bool true on success or false on failure. */ public function addPutData($put_data) {} /** * (PECL pecl_http >= 0.10.0)* header to read; if empty, all response headers will be returned *
* @return mixed either a string with the value of the header matching name if requested, * FALSE on failure, or an associative array containing all response headers. */ #[Pure] public function getResponseHeader($name = null) {} /** * (PECL pecl_http >= 0.23.0)* http_parse_cookie flags *
* @param null|array $allowed_extras [optional]* allowed keys treated as extra information instead of cookie names *
* @return stdClass[] an array of stdClass objects like http_parse_cookie would return. */ #[Pure] public function getResponseCookies($flags = null, ?array $allowed_extras = null) {} /** * (PECL pecl_http >= 0.10.0)* the info to read; if empty or omitted, an associative array containing * all available info will be returned *
* @return mixed either a scalar containing the value of the info matching name if * requested, FALSE on failure, or an associative array containing all * available info. */ #[Pure] public function getResponseInfo($name = null) {} /** * (PECL pecl_http >= 0.10.0)* HttpRequest object to attach *
*/ public function __construct(?HttpRequest $request = null) {} /** * (PECL pecl_http >= 0.10.0)* an HttpRequest object not already attached to any HttpRequestPool object *
* @return bool true on success or false on failure. */ public function attach(HttpRequest $request) {} /** * (PECL pecl_http >= 0.10.0)* an HttpRequest object attached to this HttpRequestPool object *
* @return bool true on success or false on failure. */ public function detach(HttpRequest $request) {} /** * (PECL pecl_http >= 0.10.0)* the name of the header *
* @param mixed $value [optional]* the value of the header; * if not set, no header with this name will be sent *
* @param bool $replace [optional]* whether an existing header should be replaced *
* @return bool true on success or false on failure. */ public static function setHeader($name, $value = null, $replace = null) {} /** * (PECL pecl_http >= 0.12.0)* specifies the name of the header to read; * if empty or omitted, an associative array with all headers will be returned *
* @return mixed either a string containing the value of the header matching name, * false on failure, or an associative array with all headers. */ public static function getHeader($name = null) {} /** * (PECL pecl_http >= 0.10.0)* unquoted string as parameter containing the ETag *
* @return bool true on success or false on failure. */ public static function setETag($etag) {} /** * (PECL pecl_http >= 0.10.0)* Unix timestamp representing the last modification time of the sent entity *
* @return bool true on success or false on failure. */ public static function setLastModified($timestamp) {} /** * (PECL pecl_http >= 0.12.0)* the file name the "Save as..." dialog should display *
* @param bool $inline [optional]* if set to true and the user agent knows how to handle the content type, * it will probably not cause the popup window to be shown *
* @return bool true on success or false on failure. */ public static function setContentDisposition($filename, $inline = null) {} /** * (PECL pecl_http >= 0.10.0)* the content type of the sent entity (primary/secondary) *
* @return bool true on success, or false if the content type does not seem to * contain a primary and secondary content type part. */ public static function setContentType($content_type) {} /** * (PECL pecl_http >= 0.10.0)* specifies the magic.mime database to use *
* @param int $magic_mode [optional]* flags for libmagic *
* @return string|false the guessed content type on success or false on failure. */ public static function guessContentType($magic_file, $magic_mode = null) {} /** * (PECL pecl_http >= 0.10.0)* whether caching should be attempted *
* @return bool true on success or false on failure. */ public static function setCache($cache) {} /** * (PECL pecl_http >= 0.10.0)* the primary cache control setting *
* @param int $max_age [optional]* the max-age in seconds, suggesting how long the cache entry is valid on the client side *
* @param bool $must_revalidate [optional]* whether the cached entity should be revalidated by the client for every request *
* @return bool true on success, or false if control does not match one of public, private or no-cache. */ public static function setCacheControl($control, $max_age = null, $must_revalidate = null) {} /** * (PECL pecl_http >= 0.10.0)* whether GZip compression should be enabled *
* @return bool true on success or false on failure. */ public static function setGzip($gzip) {} /** * (PECL pecl_http >= 0.10.0)* seconds to sleep after each chunk sent *
* @return bool true on success or false on failure. */ public static function setThrottleDelay($seconds) {} /** * (PECL pecl_http >= 0.10.0)* the chunk size in bytes *
* @return bool true on success or false on failure. */ public static function setBufferSize($bytes) {} /** * (PECL pecl_http >= 0.10.0)* data to send *
* @return bool true on success or false on failure. */ public static function setData($data) {} /** * (PECL pecl_http >= 0.10.0)* the path to the file to send *
* @return bool true on success or false on failure. */ public static function setFile($file) {} /** * (PECL pecl_http >= 0.10.0)* already opened stream from which the data to send will be read *
* @return bool true on success or false on failure. */ public static function setStream($stream) {} /** * (PECL pecl_http >= 0.10.0)* whether to destroy all previously started output handlers and their buffers *
* @return bool true on success or false on failure. */ public static function send($clean_ob = null) {} /** * (PECL pecl_http >= 0.10.0)* Unix timestamp; current time if omitted *
* @return string the HTTP date as string. */ #[Pure] function http_date($timestamp = null) {} /** * (PECL pecl_http >= 0.21.0)* (part(s) of) an URL in form of a string or associative array like parse_url returns *
* @param mixed $parts [optional]* same as the first argument *
* @param null|int $flags [optional]* a bitmask of binary or'ed HTTP_URL constants; * HTTP_URL_REPLACE is the default *
* @param null|array &$new_url [optional]* if set, it will be filled with the parts of the composed url like parse_url would return *
* @return string|false the new URL as string on success or false on failure. */ function http_build_url($url = null, $parts = null, $flags = null, ?array &$new_url = null) {} /** * (PECL pecl_http >= 0.23.0)* associative array of query string parameters *
* @param string $prefix [optional]* top level prefix *
* @param string $arg_separator [optional]* argument separator to use (by default the INI setting arg_separator.output will be used, or "&" if neither is set *
* @return string|false the built query as string on success or false on failure. */ #[Pure] function http_build_str(array $query, $prefix = null, $arg_separator = null) {} /** * (PECL pecl_http >= 0.1.0)* array containing the supported languages as values *
* @param null|array &$result [optional]* will be filled with an array containing the negotiation results *
* @return string the negotiated language or the default language (i.e. first array entry) if none match. */ function http_negotiate_language(array $supported, ?array &$result = null) {} /** * (PECL pecl_http >= 0.1.0)* array containing the supported charsets as values *
* @param null|array &$result [optional]* will be filled with an array containing the negotiation results *
* @return string the negotiated charset or the default charset (i.e. first array entry) if none match. */ function http_negotiate_charset(array $supported, ?array &$result = null) {} /** * (PECL pecl_http >= 0.19.0)* array containing the supported content types as values *
* @param null|array &$result [optional]* will be filled with an array containing the negotiation results *
* @return string the negotiated content type or the default content type (i.e. first array entry) if none match. */ function http_negotiate_content_type(array $supported, ?array &$result = null) {} /** * (PECL pecl_http >= 0.1.0)* the URL to redirect to *
* @param null|array $params [optional]* associative array of query parameters *
* @param null|bool $session [optional]* whether to append session information *
* @param null|int $status [optional]* custom response status code *
* @return void|false returns false or exits with the specified redirection status code */ function http_redirect($url = null, ?array $params = null, $session = null, $status = null) {} /** * (PECL pecl_http >= 0.10.0)* seconds to sleep after each chunk sent *
* @param int $bytes [optional]* the chunk size in bytes *
* @return void */ function http_throttle($sec = null, $bytes = null) {} /** * (PECL pecl_http >= 0.1.0)* HTTP status code (100-599) *
* @return bool true on success or false on failure. */ function http_send_status($status) {} /** * (PECL pecl_http >= 0.1.0)* a Unix timestamp, converted to a valid HTTP date; * if omitted, the current time will be sent *
* @return bool true on success or false on failure. */ function http_send_last_modified($timestamp = null) {} /** * (PECL pecl_http >= 0.10.0)* the desired content type (primary/secondary) *
* @return bool true on success or false on failure. */ function http_send_content_type($content_type = null) {} /** * (PECL pecl_http >= 0.10.0)* the file name the "Save as..." dialog should display *
* @param bool $inline [optional]* if set to true and the user agent knows how to handle the content type, * it will probably not cause the popup window to be shown *
* @return bool true on success or false on failure. */ function http_send_content_disposition($filename, $inline = null) {} /** * (PECL pecl_http >= 0.1.0)* Unix timestamp; current time, if omitted *
* @param bool $for_range [optional]* if set to true, the header usually used to validate HTTP ranges will be checked *
* @return bool true if timestamp represents an earlier date than the header, else false. */ #[Pure] function http_match_modified($timestamp = null, $for_range = null) {} /** * (PECL pecl_http >= 0.1.0)* the ETag to match *
* @param bool $for_range [optional]* if set to true, the header usually used to validate HTTP ranges will be checked *
* @return bool true if ETag matches or the header contained the asterisk ("*"), else false. */ #[Pure] function http_match_etag($etag, $for_range = null) {} /** * (PECL pecl_http >= 0.1.0)* Unix timestamp *
* @return bool with 304 Not Modified if the entity is cached. * &see.http.configuration.force_exit; */ #[Pure] function http_cache_last_modified($timestamp_or_expires = null) {} /** * (PECL pecl_http >= 0.1.0)* custom ETag *
* @return bool with 304 Not Modified if the entity is cached. * &see.http.configuration.force_exit; */ #[Pure] function http_cache_etag($etag = null) {} /** * (PECL pecl_http >= 0.1.0)* data to send *
* @return bool true on success or false on failure. */ function http_send_data($data) {} /** * (PECL pecl_http >= 0.1.0)* the file to send *
* @return bool true on success or false on failure. */ function http_send_file($file) {} /** * (PECL pecl_http >= 0.1.0)* stream to read from (must be seekable) *
* @return bool true on success or false on failure. */ function http_send_stream($stream) {} /** * (PECL pecl_http >= 0.1.0)* chunked encoded string *
* @return string|false the decoded string on success or false on failure. */ #[Pure] function http_chunked_decode($encoded) {} /** * (PECL pecl_http >= 0.12.0)* string containing a single HTTP message or several consecutive HTTP messages *
* @return object a hierarchical object structure of the parsed messages. */ #[Pure] function http_parse_message($message) {} /** * (PECL pecl_http >= 0.10.0)* string containing HTTP headers *
* @return array|false an array on success or false on failure. */ #[Pure] function http_parse_headers($header) {} /** * (PECL pecl_http >= 0.20.0)* string containing the value of a Set-Cookie response header *
* @param int $flags [optional]* parse flags (HTTP_COOKIE_PARSE_RAW) *
* @param null|array $allowed_extras [optional]* array containing recognized extra keys; * by default all unknown keys will be treated as cookie names *
* @return stdClass|false a stdClass object on success or false on failure. */ #[Pure] function http_parse_cookie($cookie, $flags = null, ?array $allowed_extras = null) {} /** * (PECL pecl_http >= 1.2.0)* a cookie list like returned from http_parse_cookie *
* @return string the cookie(s) as string. */ #[Pure] function http_build_cookie(array $cookie) {} /** * (PECL pecl_http >= 1.0.0)* Parameters *
* @param int $flags [optional]* Parse flags *
* @return stdClass parameter list as stdClass object. */ #[Pure] function http_parse_params($param, $flags = null) {} /** * (PECL pecl_http >= 0.10.0)* the header name (case-insensitive) *
* @param string $value* the header value that should be compared *
* @param bool $match_case [optional]* whether the value should be compared case sensitively *
* @return bool true if header value matches, else false. */ #[Pure] function http_match_request_header($header, $value, $match_case = null) {} /** * (PECL pecl_http >= 1.5.0)* the identification string *
* @return string|false the prior ident as string on success or false on failure. */ function http_persistent_handles_ident($ident) {} /** * (PECL pecl_http >= 0.1.0)* URL *
* @param null|array $options [optional]*
* @param null|array &$info [optional]* Will be filled with request/response information *
* @return string */ function http_get($url, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.1.0)* URL *
* @param null|array $options [optional]*
* @param null|array &$info [optional]*
* @return string */ function http_head($url = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.1.0)* URL *
* @param string $data [optional]* String containing the pre-encoded post data *
* @param null|array $options [optional]*
* @param null|array &$info [optional]*
* @return string */ function http_post_data($url, $data = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.10.0)* URL *
* @param null|array $data [optional]* Associative array of POST values *
* @param null|array $files [optional]* Array of files to post *
* @param null|array $options [optional]*
* @param null|array &$info [optional]*
* @return string */ function http_post_fields($url, ?array $data = null, ?array $files = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.25.0)* URL *
* @param null|string $data [optional]* PUT request body *
* @param null|array $options [optional]*
* @param null|array &$info [optional]*
* @return string */ function http_put_data($url, $data = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.10.0)* URL *
* @param null|string $file [optional]* The file to put *
* @param null|array $options [optional]*
* @param null|array &$info [optional]*
* @return string */ function http_put_file($url, $file = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 0.10.0)* URL *
* @param null|resource $stream [optional]* The stream to read the PUT request body from *
* @param null|array $options [optional]*
* @param null|array &$info [optional]*
* @return string */ function http_put_stream($url, $stream = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 1.0.0)* Request method *
* @param null|string $url [optional]* URL *
* @param null|string $body [optional]* Request body *
* @param null|array $options [optional]*
* @param null|array &$info [optional]*
* @return string */ function http_request($method, $url = null, $body = null, ?array $options = null, ?array &$info = null) {} /** * (PECL pecl_http >= 1.0.0)* POST fields *
* @param array $files* POST files *
* @return string|false encoded string on success or false on failure. */ #[Pure] function http_request_body_encode(array $fields, array $files) {} /** * (PECL pecl_http >= 0.10.0)* the request method name to register *
* @return int|false the ID of the request method on success or false on failure. */ function http_request_method_register($method) {} /** * (PECL pecl_http >= 0.10.0)* The request method name or ID *
* @return bool true on success or false on failure. */ function http_request_method_unregister($method) {} /** * (PECL pecl_http >= 0.10.0)* request method name or ID *
* @return bool true if the request method is known, else false. */ #[Pure] function http_request_method_exists($method) {} /** * (PECL pecl_http >= 0.10.0)* request method ID *
* @return string|false the request method name as string on success or false on failure. */ #[Pure] function http_request_method_name($method) {} /** * (PECL pecl_http >= 0.10.0)* String containing the data that should be encoded *
* @param int $flags [optional]* deflate options *
* @return string|null the encoded string on success, or NULL on failure. */ #[Pure] function http_deflate($data, $flags = null) {} /** * (PECL pecl_http >= 0.15.0)* string containing the compressed data *
* @return string|null the decoded string on success, or NULL on failure. */ #[Pure] function http_inflate($data) {} /** * (PECL pecl_http >= 0.21.0)* feature to probe for *
* @return int integer, whether requested feature is supported, * or a bitmask with all supported features if feature was omitted. */ #[Pure] function http_support($feature = null) {} /** * don't urldecode values * @link https://php.net/manual/en/http.constants.php */ define('HTTP_COOKIE_PARSE_RAW', 1); /** * whether "secure" was found in the cookie's parameters list * @link https://php.net/manual/en/http.constants.php */ define('HTTP_COOKIE_SECURE', 16); /** * whether "httpOnly" was found in the cookie's parameter list * @link https://php.net/manual/en/http.constants.php */ define('HTTP_COOKIE_HTTPONLY', 32); define('HTTP_DEFLATE_LEVEL_DEF', 0); define('HTTP_DEFLATE_LEVEL_MIN', 1); define('HTTP_DEFLATE_LEVEL_MAX', 9); define('HTTP_DEFLATE_TYPE_ZLIB', 0); define('HTTP_DEFLATE_TYPE_GZIP', 16); define('HTTP_DEFLATE_TYPE_RAW', 32); define('HTTP_DEFLATE_STRATEGY_DEF', 0); define('HTTP_DEFLATE_STRATEGY_FILT', 256); define('HTTP_DEFLATE_STRATEGY_HUFF', 512); define('HTTP_DEFLATE_STRATEGY_RLE', 768); define('HTTP_DEFLATE_STRATEGY_FIXED', 1024); /** * don't flush * @link https://php.net/manual/en/http.constants.php */ define('HTTP_ENCODING_STREAM_FLUSH_NONE', 0); /** * synchronized flush only * @link https://php.net/manual/en/http.constants.php */ define('HTTP_ENCODING_STREAM_FLUSH_SYNC', 1048576); /** * full data flush * @link https://php.net/manual/en/http.constants.php */ define('HTTP_ENCODING_STREAM_FLUSH_FULL', 2097152); /** * use "basic" authentication * @link https://php.net/manual/en/http.constants.php */ define('HTTP_AUTH_BASIC', 1); /** * use "digest" authentication * @link https://php.net/manual/en/http.constants.php */ define('HTTP_AUTH_DIGEST', 2); /** * use "NTLM" authentication * @link https://php.net/manual/en/http.constants.php */ define('HTTP_AUTH_NTLM', 8); /** * use "GSS-NEGOTIATE" authentication * @link https://php.net/manual/en/http.constants.php */ define('HTTP_AUTH_GSSNEG', 4); /** * try any authentication scheme * @link https://php.net/manual/en/http.constants.php */ define('HTTP_AUTH_ANY', -1); define('HTTP_VERSION_NONE', 0); /** * HTTP version 1.0 * @link https://php.net/manual/en/http.constants.php */ define('HTTP_VERSION_1_0', 1); /** * HTTP version 1.1 * @link https://php.net/manual/en/http.constants.php */ define('HTTP_VERSION_1_1', 2); /** * no specific HTTP protocol version * @link https://php.net/manual/en/http.constants.php */ define('HTTP_VERSION_ANY', 0); /** * use TLSv1 only * @link https://php.net/manual/en/http.constants.php */ define('HTTP_SSL_VERSION_TLSv1', 1); /** * use SSLv2 only * @link https://php.net/manual/en/http.constants.php */ define('HTTP_SSL_VERSION_SSLv2', 2); /** * use SSLv3 only * @link https://php.net/manual/en/http.constants.php */ define('HTTP_SSL_VERSION_SSLv3', 3); /** * no specific SSL protocol version * @link https://php.net/manual/en/http.constants.php */ define('HTTP_SSL_VERSION_ANY', 0); /** * use IPv4 only for name lookups * @link https://php.net/manual/en/http.constants.php */ define('HTTP_IPRESOLVE_V4', 1); /** * use IPv6 only for name lookups * @link https://php.net/manual/en/http.constants.php */ define('HTTP_IPRESOLVE_V6', 2); /** * use any IP mechanism only for name lookups * @link https://php.net/manual/en/http.constants.php */ define('HTTP_IPRESOLVE_ANY', 0); /** * the proxy is a SOCKS4 type proxy * @link https://php.net/manual/en/http.constants.php */ define('HTTP_PROXY_SOCKS4', 4); /** * the proxy is a SOCKS5 type proxy * @link https://php.net/manual/en/http.constants.php */ define('HTTP_PROXY_SOCKS5', 5); /** * standard HTTP proxy * @link https://php.net/manual/en/http.constants.php */ define('HTTP_PROXY_HTTP', 0); define('HTTP_METH_GET', 1); define('HTTP_METH_HEAD', 2); define('HTTP_METH_POST', 3); define('HTTP_METH_PUT', 4); define('HTTP_METH_DELETE', 5); define('HTTP_METH_OPTIONS', 6); define('HTTP_METH_TRACE', 7); define('HTTP_METH_CONNECT', 8); define('HTTP_METH_PROPFIND', 9); define('HTTP_METH_PROPPATCH', 10); define('HTTP_METH_MKCOL', 11); define('HTTP_METH_COPY', 12); define('HTTP_METH_MOVE', 13); define('HTTP_METH_LOCK', 14); define('HTTP_METH_UNLOCK', 15); define('HTTP_METH_VERSION_CONTROL', 16); define('HTTP_METH_REPORT', 17); define('HTTP_METH_CHECKOUT', 18); define('HTTP_METH_CHECKIN', 19); define('HTTP_METH_UNCHECKOUT', 20); define('HTTP_METH_MKWORKSPACE', 21); define('HTTP_METH_UPDATE', 22); define('HTTP_METH_LABEL', 23); define('HTTP_METH_MERGE', 24); define('HTTP_METH_BASELINE_CONTROL', 25); define('HTTP_METH_MKACTIVITY', 26); define('HTTP_METH_ACL', 27); /** * guess applicable redirect method * @link https://php.net/manual/en/http.constants.php */ define('HTTP_REDIRECT', 0); /** * permanent redirect (301 Moved permanently) * @link https://php.net/manual/en/http.constants.php */ define('HTTP_REDIRECT_PERM', 301); /** * standard redirect (302 Found) * RFC 1945 and RFC 2068 specify that the client is not allowed * to change the method on the redirected request. However, most * existing user agent implementations treat 302 as if it were a 303 * response, performing a GET on the Location field-value regardless * of the original request method. The status codes 303 and 307 have * been added for servers that wish to make unambiguously clear which * kind of reaction is expected of the client. * @link https://php.net/manual/en/http.constants.php */ define('HTTP_REDIRECT_FOUND', 302); /** * redirect applicable to POST requests (303 See other) * @link https://php.net/manual/en/http.constants.php */ define('HTTP_REDIRECT_POST', 303); /** * proxy redirect (305 Use proxy) * @link https://php.net/manual/en/http.constants.php */ define('HTTP_REDIRECT_PROXY', 305); /** * temporary redirect (307 Temporary Redirect) * @link https://php.net/manual/en/http.constants.php */ define('HTTP_REDIRECT_TEMP', 307); /** * querying for this constant will always return true * @link https://php.net/manual/en/http.constants.php */ define('HTTP_SUPPORT', 1); /** * whether support to issue HTTP requests is given, ie. libcurl support was compiled in * @link https://php.net/manual/en/http.constants.php */ define('HTTP_SUPPORT_REQUESTS', 2); /** * whether support to guess the Content-Type of HTTP messages is given, ie. libmagic support was compiled in * @link https://php.net/manual/en/http.constants.php */ define('HTTP_SUPPORT_MAGICMIME', 4); /** * whether support for zlib encodings is given, ie. libz support was compiled in * @link https://php.net/manual/en/http.constants.php */ define('HTTP_SUPPORT_ENCODINGS', 8); /** * whether support to issue HTTP requests over SSL is given, ie. linked libcurl was built with SSL support * @link https://php.net/manual/en/http.constants.php */ define('HTTP_SUPPORT_SSLREQUESTS', 32); define('HTTP_SUPPORT_EVENTS', 128); /** * allow commands additionally to semicolons as separator * @link https://php.net/manual/en/http.constants.php */ define('HTTP_PARAMS_ALLOW_COMMA', 1); /** * continue parsing after an error occurred * @link https://php.net/manual/en/http.constants.php */ define('HTTP_PARAMS_ALLOW_FAILURE', 2); /** * raise PHP warnings on parse errors * @link https://php.net/manual/en/http.constants.php */ define('HTTP_PARAMS_RAISE_ERROR', 4); /** * all three values above, bitwise or'ed * @link https://php.net/manual/en/http.constants.php */ define('HTTP_PARAMS_DEFAULT', 7); /** * replace every part of the first URL when there's one of the second URL * @link https://php.net/manual/en/http.constants.php */ define('HTTP_URL_REPLACE', 0); /** * join relative paths * @link https://php.net/manual/en/http.constants.php */ define('HTTP_URL_JOIN_PATH', 1); /** * join query strings * @link https://php.net/manual/en/http.constants.php */ define('HTTP_URL_JOIN_QUERY', 2); /** * strip any user authentication information * @link https://php.net/manual/en/http.constants.php */ define('HTTP_URL_STRIP_USER', 4); /** * strip any password authentication information * @link https://php.net/manual/en/http.constants.php */ define('HTTP_URL_STRIP_PASS', 8); /** * strip any authentication information * @link https://php.net/manual/en/http.constants.php */ define('HTTP_URL_STRIP_AUTH', 12); /** * strip explicit port numbers * @link https://php.net/manual/en/http.constants.php */ define('HTTP_URL_STRIP_PORT', 32); /** * strip complete path * @link https://php.net/manual/en/http.constants.php */ define('HTTP_URL_STRIP_PATH', 64); /** * strip query string * @link https://php.net/manual/en/http.constants.php */ define('HTTP_URL_STRIP_QUERY', 128); /** * strip any fragments (#identifier) * @link https://php.net/manual/en/http.constants.php */ define('HTTP_URL_STRIP_FRAGMENT', 256); /** * strip anything but scheme and host * @link https://php.net/manual/en/http.constants.php */ define('HTTP_URL_STRIP_ALL', 492); define('HTTP_URL_FROM_ENV', 4096); /** * runtime error * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_RUNTIME', 1); /** * an invalid parameter was passed * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_INVALID_PARAM', 2); /** * header() or similar operation failed * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_HEADER', 3); /** * HTTP header parse error * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_MALFORMED_HEADERS', 4); /** * unknown/invalid request method * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_REQUEST_METHOD', 5); /** * with operation incompatible message type * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_MESSAGE_TYPE', 6); /** * encoding/decoding error * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_ENCODING', 7); /** * request failure * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_REQUEST', 8); /** * request pool failure * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_REQUEST_POOL', 9); /** * socket exception * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_SOCKET', 10); /** * response failure * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_RESPONSE', 11); /** * invalid URL * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_URL', 12); /** * querystring operation failure * @link https://php.net/manual/en/http.constants.php */ define('HTTP_E_QUERYSTRING', 13); /** * the message is of no specific type * @link https://php.net/manual/en/http.constants.php */ define('HTTP_MSG_NONE', 0); /** * request style message * @link https://php.net/manual/en/http.constants.php */ define('HTTP_MSG_REQUEST', 1); /** * response style message * @link https://php.net/manual/en/http.constants.php */ define('HTTP_MSG_RESPONSE', 2); define('HTTP_QUERYSTRING_TYPE_BOOL', 3); define('HTTP_QUERYSTRING_TYPE_INT', 1); define('HTTP_QUERYSTRING_TYPE_FLOAT', 2); define('HTTP_QUERYSTRING_TYPE_STRING', 6); define('HTTP_QUERYSTRING_TYPE_ARRAY', 4); define('HTTP_QUERYSTRING_TYPE_OBJECT', 5);