From 73508c8e9957ba07de65e41342f74fd49a8ce13a Mon Sep 17 00:00:00 2001
From: Michael Wallner
Date: Fri, 7 Jul 2006 11:49:30 +0000
Subject: [PATCH] - add HttpMessage::get(string $name)
---
docs/functions.html | 6 +++++-
http_message_object.c | 30 ++++++++++++++++++++++++++++++
package2.xml | 3 ++-
php_http_message_object.h | 1 +
4 files changed, 38 insertions(+), 2 deletions(-)
diff --git a/docs/functions.html b/docs/functions.html
index c3d2aad..f78ada3 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.
+
+Get message header.
+Returns the header value on success or NULL if the header does not exist.
Get Message Headers.
Returns an associative array containing the messages HTTP headers.
@@ -1287,6 +1290,7 @@ http.cache_log is set.
HttpMessage::fromString()
HttpMessage::getBody()
HttpMessage::setBody()
+HttpMessage::getHeader()
HttpMessage::getHeaders()
HttpMessage::setHeaders()
HttpMessage::addHeaders()
@@ -1449,7 +1453,7 @@ http.cache_log is set.
- Generated at: Thu, 06 Jul 2006 20:17:57 +0200
+ Generated at: Fri, 07 Jul 2006 13:48:43 +0200