X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Ffunctions.html;h=743a151fc7ad938c919560bdb374cfd19c912321;hb=9d41facfe3c41db910df23a6c4e2bbdb702077aa;hp=25b14cc58520389e19bc74f074de10c25d7fde1b;hpb=3fcfaba41748c3fd452e84ba6da6ea2d91f28e5e;p=m6w6%2Fext-http diff --git a/docs/functions.html b/docs/functions.html index 25b14cc..743a151 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -513,6 +513,9 @@ HTTP messages. Accepts an optional string parameter specifying the class to use

Set the body of the HttpMessage.
NOTE: Don't forget to update any headers accordingly.

Expects a string parameter containing the new body of the message.

+

string HttpMessage::getHeader(string header)

+

Get message header.

+

Returns the header value on success or NULL if the header does not exist.

array HttpMessage::getHeaders()

Get Message Headers.

Returns an associative array containing the messages HTTP headers.

@@ -576,6 +579,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.

@@ -637,6 +647,12 @@ Operates on and modifies $_GET and $_SERVER['QUERY_STRING'] if global is TRUE.

string HttpQueryString::set(mixed params)

Set query string entry/entries. NULL values will unset the variable.

+

HttpQueryString HttpQueryString::mod(mixed params)

+

Copies the query string object and sets provided params at the clone.
+This is basically shorthand for:


+<?php
$newQS 
= new HttpQueryString(false$oldQS);
$newQS->set($other_params);
?>
+

+

static HttpQueryString HttpQueryString::singleton([bool global = true])

Get a single instance (differentiates between the global setting).

bool HttpQueryString::xlate(string ie, string oe)

@@ -647,6 +663,14 @@ WARNING: Don't use any character set that can contain NUL bytes like UTF-16.

Implements Serializable.

void HttpQueryString::unserialize(string serialized)

Implements Serializable.

+

mixed HttpQueryString::offsetGet(string offset)

+

Implements ArrayAccess.

+

void HttpQueryString::offsetSet(string offset, mixed value)

+

Implements ArrayAccess.

+

bool HttpQueryString::offsetExists(string offset)

+

Implements ArrayAccess.

+

void HttpQueryString::offsetUnset(string offset)

+

Implements ArrayAccess.


http_request_object.c

HttpRequest

@@ -1274,6 +1298,7 @@ http.cache_log is set.

  • HttpMessage::fromString()
  • HttpMessage::getBody()
  • HttpMessage::setBody()
  • +
  • HttpMessage::getHeader()
  • HttpMessage::getHeaders()
  • HttpMessage::setHeaders()
  • HttpMessage::addHeaders()
  • @@ -1289,6 +1314,7 @@ http.cache_log is set.

  • HttpMessage::setRequestUrl()
  • HttpMessage::getHttpVersion()
  • HttpMessage::setHttpVersion()
  • +
  • HttpMessage::guessContentType()
  • HttpMessage::getParentMessage()
  • HttpMessage::send()
  • HttpMessage::toString()
  • @@ -1314,10 +1340,15 @@ http.cache_log is set.

  • HttpQueryString::toArray()
  • HttpQueryString::get()
  • HttpQueryString::set()
  • +
  • HttpQueryString::mod()
  • HttpQueryString::singleton()
  • HttpQueryString::xlate()
  • HttpQueryString::serialize()
  • HttpQueryString::unserialize()
  • +
  • HttpQueryString::offsetGet()
  • +
  • HttpQueryString::offsetSet()
  • +
  • HttpQueryString::offsetExists()
  • +
  • HttpQueryString::offsetUnset()
  • @@ -1434,7 +1465,7 @@ http.cache_log is set.

    -

    Generated at: Sun, 28 May 2006 17:55:39 +0200

    +

    Generated at: Fri, 07 Jul 2006 21:23:59 +0200