X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=docs%2Ffunctions.html;h=b939e06fb1ae8d59b054f759c52e395bea90f429;hp=4c6aeedcbfdadac51e1e3a8c3c74dae1169befaf;hb=1374172d6c717de67faf91519b100b5348329aee;hpb=0783cd4e630749e23e0cff3ec2453036412bba67 diff --git a/docs/functions.html b/docs/functions.html index 4c6aeed..b939e06 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -198,7 +198,7 @@ requested last modification date is not between the calculated timespan,
the Last-Modified header is updated and the actual body will be sent.

Returns FALSE on failure, or *exits* with "304 Not Modified" if the entity is cached.

A log entry will be written to the cache log if the INI entry
-http.cache_log is set and the cache attempt was successful.

+http.log.cache is set and the cache attempt was successful.

bool http_cache_etag([string etag])

Attempts to cache the sent entity by its ETag, either supplied or generated
by the hash algorithm specified by the INI setting "http.etag.mode".

@@ -207,7 +207,7 @@ ETag, the body is considered cached on the clients side and
a "304 Not Modified" status code is issued.

Returns FALSE on failure, or *exits* with "304 Not Modified" if the entity is cached.

A log entry is written to the cache log if the INI entry
-"http.cache_log" is set and the cache attempt was successful.

+"http.log.cache" is set and the cache attempt was successful.

string ob_etaghandler(string data, int mode)

For use with ob_start(). Output buffer handler generating an ETag with
the hash algorithm specified with the INI setting "http.etag.mode".

@@ -243,7 +243,7 @@ if the client doesn't redirect immediately, and the request method was
another one than HEAD.

Returns FALSE on failure, or *exits* on success.

A log entry will be written to the redirect log, if the INI entry
-"http.redirect_log" is set and the redirect attempt was successful.

+"http.log.redirect" is set and the redirect attempt was successful.

bool http_send_data(string data)

Sends raw data with support for (multiple) range requests.

Returns TRUE on success, or FALSE on failure.

@@ -576,6 +576,13 @@ HttpMessage::TYPE_REQUEST or supplied URL was empty.

Set the HTTP Protocol version of the Message.

Expects a string parameter containing the HTTP protocol version.

Returns TRUE on success, or FALSE if supplied version is out of range (1.0/1.1).

+

string HttpMessage::guessContentType(string magic_file[, int magic_mode = MAGIC_MIME])

+

Attempts to guess the content type of supplied payload through libmagic.

+

Expects a string parameter specifying the magic.mime database to use.
+Additionally accepts an optional int parameter, being flags for libmagic.

+

Returns the guessed content type on success, or FALSE on failure.

+

Throws HttpRuntimeException, HttpInvalidParamException
+if http.only_exceptions is TRUE.

HttpMessage HttpMessage::getParentMessage()

Get parent Message.

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

@@ -1289,6 +1296,7 @@ http.cache_log is set.

  • HttpMessage::setRequestUrl()
  • HttpMessage::getHttpVersion()
  • HttpMessage::setHttpVersion()
  • +
  • HttpMessage::guessContentType()
  • HttpMessage::getParentMessage()
  • HttpMessage::send()
  • HttpMessage::toString()
  • @@ -1434,7 +1442,7 @@ http.cache_log is set.

    -

    Generated at: Sun, 28 May 2006 17:34:52 +0200

    +

    Generated at: Thu, 08 Jun 2006 23:59:56 +0200