From a0098fdbfef71be0fab417b5bc624dc884bd4549 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 11 Oct 2005 11:35:05 +0000 Subject: [PATCH] - docs - release 0.15 --- docs/functions.html | 75 +++++++++++++++++++++++++++++++++++++++++++-- http_functions.c | 24 ++++++++------- 2 files changed, 85 insertions(+), 14 deletions(-) diff --git a/docs/functions.html b/docs/functions.html index 1503d1a..f785fd0 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -337,6 +337,60 @@ See http_get() for a full list of available options.

Returns the request method name as string on success, or FALSE on failure.

string http_build_query(mixed formdata [, string prefix[, string arg_separator]])

Generates a form-encoded query string from an associative array or object.

+

string http_gzencode(string data[, int level = -1])

+

Compress data with the HTTP compatible GZIP encoding.

+

Expects the first parameter to be a string which contains the data that
+should be encoded. Additionally accepts an optional in paramter specifying
+the compression level, where -1 is default, 0 is no compression and 9 is
+best compression ratio.

+

Returns the encoded string on success, or NULL on failure.

+

string http_gzdecode(string data)

+

Uncompress data compressed with the HTTP compatible GZIP encoding.

+

Expects a string as parameter containing the compressed data.

+

Returns the decoded string on success, or NULL on failure.

+

string http_deflate(string data[, int level = -1])

+

Compress data with the HTTP compatible DEFLATE encoding.

+

Expects the first parameter to be a string containing the data that should
+be encoded. Additionally accepts an optional int parameter specifying the
+compression level, where -1 is default, 0 is no compression and 9 is best
+compression ratio.

+

Returns the encoded string on success, or NULL on failure.

+

string http_inflate(string data)

+

Uncompress data compressed with the HTTP compatible DEFLATE encoding.

+

Expects a string as parameter containing the compressed data.

+

Returns the decoded string on success, or NULL on failure.

+

string http_compress(string data[, int level = -1])

+

Compress data with the HTTP compatible COMPRESS encoding.

+

Expects the first parameter to be a string containing the data which should
+be encoded. Additionally accepts an optional int parameter specifying the
+compression level, where -1 is default, 0 is no compression and 9 is best
+compression ratio.

+

Returns the encoded string on success, or NULL on failure.

+

string http_uncompress(string data)

+

Uncompress data compressed with the HTTP compatible COMPRESS encoding.

+

Expects a string as parameter containing the compressed data.

+

Returns the decoded string on success, or NULL on failure.

+

int http_support([int feature = 0])

+

Check for feature that require external libraries.

+

Accpepts an optional in parameter specifying which feature to probe for.
+If the parameter is 0 or omitted, the return value contains a bitmask of
+all supported featuers that depend on external libraries.

+

Available features to probe for are:
+

+

Returns int, whether requested feature is supported, or a bitmask with
+all supported features.


http_message_object.c

HttpMessage

@@ -429,11 +483,12 @@ should also contain any parent messages.


http_request_object.c

HttpRequest

-

void HttpRequest::__construct([string url[, int request_method = HTTP_METH_GET]])

+

void HttpRequest::__construct([string url[, int request_method = HTTP_METH_GET[, array options]]])

Instantiate a new HttpRequest object.

Accepts a string as optional parameter containing the target request url.
Additianally accepts an optional int parameter specifying the request method
-to use.

+to use and an associative array as optional third parameter which will be
+passed to HttpRequest::setOptions().

Throws HttpException.

void HttpRequest::__destruct()

Destroys the HttpRequest object.

@@ -953,6 +1008,20 @@ http.cache_log is set.

  • http_build_query
  • +
  • http_gzencode +
  • +
  • http_gzdecode +
  • +
  • http_deflate +
  • +
  • http_inflate +
  • +
  • http_compress +
  • +
  • http_uncompress +
  • +
  • http_support +
  • http_message_object.c @@ -1083,7 +1152,7 @@ http.cache_log is set.

  • -

    Generated at: Wed, 05 Oct 2005 15:34:24 +0000

    +

    Generated at: Tue, 11 Oct 2005 11:33:16 +0000

    diff --git a/http_functions.c b/http_functions.c index 9bde4fb..bf376ac 100644 --- a/http_functions.c +++ b/http_functions.c @@ -1605,17 +1605,19 @@ PHP_FUNCTION(http_uncompress) * all supported featuers that depend on external libraries. * * Available features to probe for are: - * - HTTP_SUPPORT: always set - * - HTTP_SUPPORT_REQUESTS: whether ext/http was linked against libcurl, - * and HTTP requests can be issued - * - HTTP_SUPPORT_SSLREQUESTS: whether libcurl was linked against openssl, - * and SSL requests can be issued - * - HTTP_SUPPORT_ENCODINGS: whether ext/http was linked against zlib, - * and compressed HTTP responses can be decoded - * - HTTP_SUPPORT_MHASHETAGS: whether ext/http was linked against libmhash, - * and ETags can be generated with the available mhash algorithms - * - HTTP_SUPPORT_MAGICMIME: whether ext/http was linked against libmagic, - * and the HttpResponse::guessContentType() method is usable + * * * Returns int, whether requested feature is supported, or a bitmask with * all supported features. -- 2.30.2