-# namespace http
-
-This is pecl_http-v2.
+# pecl/http v2
This documentation is work-in-progress.
+
+## INI Directives:
+
+* http.etag.mode = "crc32b"
+ Default hash method for dynamic response payloads to generate an ETag.
+
## Request startup
-The http\Env module overrides PHP's builtin POST data parser to be run also if
+The http\Env module extends PHP's builtin POST data parser to be run also if
the request method is not POST. Additionally it will handle
application/json payloads if ext/json is available. Successfully
parsed JSON will be put right into the $_POST array.
* MATCH_CASE
Perform case sensitive matching.
* MATCH_WORD
- Match only on word boundaries (according by CTYPE alpha-numeric).
+ Match only on word boundaries (according by CType alpha-numeric).
* MATCH_FULL
Match the complete string.
* MATCH_STRICT
--- /dev/null
+# abstract class http\Object
+
+The http\Object class provides an error handling foundation for the rest of the http extension's framwework.
+
+## Constants:
+
+* EH_NORMAL
+ Normal error handling.
+* EH_SUPPRESS
+ Suppress errors.
+* EH_THROW
+ Throw exceptions on errors.
+
+## Properties:
+
+* static protected $defaultErrorHandling = NULL
+ Static default error handling.
+* protected $errorHandling = NULL
+ Per instance error handling.
--- /dev/null
+# static int http\Object::getDefaultErrorHandling()
+
+Retreive the http extension's global default error handling.
+
+## Returns:
+
+* int, the error handling. See http\Object::EH_* constants.
+* NULL, when error handling is not set.
--- /dev/null
+# int http\Object::getErrorHandling()
+
+Retrieve the currently set instance error handling.
+
+## Params:
+
+None.
+
+## Returns:
+
+* int, the current error handling. See http\Object::EH_* constants.
+
--- /dev/null
+# static void http\Object::setDefaultErrorHandling(int $eh)
+
+Set the http extension's global default error handling.
+
+## Params:
+
+* int $eh
+ The error handling. See http\Object::EH_* constants.
+
+## Throws:
+
+* http\Exception
+ When http\Object::EH_THROW is in effect.
+
+## Warnings:
+
+* E_RUNTIME, if $eh is an unknown error handling.
--- /dev/null
+# http\Object http\Object::setErrorHandling(int $eh)
+
+Set instance error handling.
+
+## Params:
+
+* int $eh
+ The error handling this instance should enforce.
+
+## Returns:
+
+* http/Object, self.
+
+## Throws:
+
+* http\Exception
+ When http\Object::EH_THROW is in effect.
+
+## Warnings:
+
+* E_RUNTIME, if $eh is an unknown error handling code.
--- /dev/null
+# void http\Object::triggerError(int $eh, int $code, string $error)
+
+Trigger an error with the specified error handling.
+
+## Params:
+
+* int $eh
+ The error handling to use. See http\Object::EH_* constants.
+* int $code
+ The error code.
+* string $error
+ The error message.
+
* PARSE_DIMENSION
Parse sub dimensions indicated by square brackets.
* PARSE_QUERY
- Parse URL query string (same as http\Params::PARSE_URLENCODED|http\Params::PARSE_DIMENSION).
+ Parse URL querystring (same as http\Params::PARSE_URLENCODED|http\Params::PARSE_DIMENSION).
## Properties: