* Use with http_send() API.
*
* Example:
- * <code>
+ * <pre>
* <?php
* // ~ 20 kbyte/s
* # http_throttle(1, 20000);
* # http_throttle(0.1, 2000);
* http_send_file('document.pdf');
* ?>
- * </code>
+ * </pre>
*/
PHP_FUNCTION(http_throttle)
{
/* {{{ proto string http_put_file(string url, string file[, array options[, array &info]])
*
+ * Performs an HTTP PUT request, uploading file.
+ * Returns the HTTP response as string.
+ * See http_get() for a full list of available options.
*/
PHP_FUNCTION(http_put_file)
{
/* {{{ proto string http_put_stream(string url, resource stream[, array options[, array &info]])
*
+ * Performs an HTTP PUT request, uploading stream.
+ * Returns the HTTP response as string.
+ * See http_get() for a full list of available options.
*/
PHP_FUNCTION(http_put_stream)
{
}
/* }}} */
-/* {{{ proto bool http_request()
- */
-/* }}} */
-
/* {{{ proto long http_request_method_register(string method)
*
+ * Register a custom request method.
*/
PHP_FUNCTION(http_request_method_register)
{
/* {{{ proto bool http_request_method_unregister(mixed method)
*
+ * Unregister a previously registered custom request method.
*/
PHP_FUNCTION(http_request_method_unregister)
{
zval *method;
- zend_bool numeric;
- unsigned long existing;
if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/", &method)) {
RETURN_FALSE;
/* {{{ proto long http_request_method_exists(mixed method)
*
+ * Check if a request method is registered (or available by default).
*/
PHP_FUNCTION(http_request_method_exists)
{
/* {{{ proto string http_request_method_name(long method)
*
+ * Get the literal string representation of a standard or registered request method.
*/
PHP_FUNCTION(http_request_method_name)
{