There are several other request types, GET, HEAD, PUT, DELETE, TRACE,
CONNECT etc. I'm not sure of which can be associated with PHP, but I know
that HEAD at least can be handled by PHP/framework.
The getHeader methods in Zend_Response should probably be unified like
Request as well for consistency; further, the API might be bumped between
raw/associative header to make this a little more simple. setHeader($spec,
$value=null, $flags=null) ... where value is null add a raw header, then add
a flag for replacement/whatever else.
Kevin
----- Original Message -----
From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, March 19, 2007 4:02 AM
Subject: Re: [fw-general] Cleanup Zend_Request
-- Kevin McArthur <[EMAIL PROTECTED]> wrote
(on Sunday, 18 March 2007, 05:50 PM -0700):
and also create isGet (or isQuery) to complement isPost
A request is either a POST or a GET. If you want to see if something was
a GET request, use:
if (!$request->isPost()) {
// GET request
}
It doesn't really make sense to support both since it's a boolean and
the possibilities are GET or POST. The decision to use isPost() is due
to the fact that most request methods will be GET anyways; you'll
typically code a check for a POST request.
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/