X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Ffunctions.html;h=7139f2a924e9d612ae200d32a9a2f7dcef53f867;hb=650dad8564d53bd3fb6c9867fa81e0abf17f6f7b;hp=a18aafa316d070af4a6c069c2550cc4e53732f6d;hpb=64594674624ccfc6512ab0cc02edd071a5ffcba7;p=m6w6%2Fext-http diff --git a/docs/functions.html b/docs/functions.html index a18aafa..7139f2a 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -74,7 +74,7 @@ looking like: "Wed, 22 Dec 2004 11:34:47 GMT"

Accepts an optional unix timestamp as parameter.

Returns the HTTP date as string.

-

string http_build_url(mixed url[, mixed parts[, int flags = HTTP_URL_REPLACE[, array &new_url]]])

+

string http_build_url([mixed url[, mixed parts[, int flags = HTTP_URL_REPLACE[, array &new_url]]]])

Build an URL.

Expexts (part(s) of) an URL as first parameter in form of a string or assoziative array
like parse_url() returns. Accepts an optional second parameter in the same way as the
@@ -84,7 +84,7 @@ with the results as associative array like parse_url() would return.

The parts of the second URL will be merged into the first according to the flags argument.
The following flags are recognized:

	- HTTP_URL_REPLACE:        (default) set parts of the second url will replace the parts in the first
- HTTP_URL_JOIN_PATH: the path of the second url will be merged into the one of the first
- - HTTP_URL_JOIN_QUERY: the two querystrings will be merged naivly; no replacements are done
+ - HTTP_URL_JOIN_QUERY: the two querystrings will be merged recursively
- HTTP_URL_STRIP_USER: the user part will not appear in the result
- HTTP_URL_STRIP_PASS: the password part will not appear in the result
- HTTP_URL_STRIP_AUTH: neither the user nor the password part will appear in the result
@@ -396,6 +396,15 @@ See http_get() for a full list of available options.

Expects the second parameter to be a string containing the data to upload.
See http_get() for a full list of available options.

Returns the HTTP response(s) as string on success, or FALSE on failure.

+

string http_request(int method, string url[, string body[, array options[, array &info]]])

+

Performs a custom HTTP request on the supplied url.

+

Expects the first parameter to be an integer specifying the request method to use.
+Accepts an optional third string parameter containing the raw request body.
+See http_get() for a full list of available options.

+

Returns the HTTP response(s) as string on success, or FALSE on failure.

+

string http_request_body_encode(array fields, array files)

+

Generate x-www-form-urlencoded resp. form-data encoded request body.

+

Returns encoded string on success, or FALSE on failure.

int http_request_method_register(string method)

Register a custom request method.

Expects a string parameter containing the request method name to register.

@@ -467,6 +476,9 @@ all supported features.


http_inflatestream_object.c

HttpInflateStream

+

void HttpInflateStream::__construct([int flags = 0])

+

Creates a new HttpInflateStream object instance.

+

Accepts an optional int parameter specifying how to initialize the inflate stream.

string HttpInflateStream::update(string data)

Passes more data through the inflate stream.

Expects a string parameter containing (a part of) the data to inflate.

@@ -566,7 +578,7 @@ HttpMessage::TYPE_REQUEST or supplied URL was empty.

HttpMessage HttpMessage::getParentMessage()

Get parent Message.

Returns the parent HttpMessage on success, or NULL if there's none.

-

Throws HttpMessageException.

+

Throws HttpRuntimeException.

bool HttpMessage::send()

Send the Message according to its type as Response or Request.
This provides limited functionality compared to HttpRequest and HttpResponse.

@@ -591,9 +603,10 @@ should also contain any parent messages.

Re-constructs the HttpMessage based upon the serialized string.

HttpMessage HttpMessage::detach(void)

Returns a clone of an HttpMessage object detached from any parent messages.

-

void HttpMessage::prepend(HttpMessage message)

+

void HttpMessage::prepend(HttpMessage message[, bool top = true])

Prepends message(s) to the HTTP message.

Expects an HttpMessage object as parameter.

+

Throws HttpInvalidParamException if the message is located within the same message chain.

HttpMessage HttpMessage::reverse()

Reorders the message chain in reverse order.

Returns the most parent HttpMessage object.

@@ -1200,6 +1213,10 @@ http.cache_log is set.

  • http_put_data
  • +
  • http_request +
  • +
  • http_request_body_encode +
  • http_request_method_register
  • http_request_method_unregister @@ -1231,6 +1248,7 @@ http.cache_log is set.

  • http_inflatestream_object.c -

    Generated at: Sun, 19 Mar 2006 19:28:39 +0100

    +

    Generated at: Sat, 22 Apr 2006 23:03:59 +0200