[TYPO3-core] RFC: #9313: Introduce HTTP_STATUS-Constants

Ingo Renner ingo at typo3.org
Mon Sep 8 19:36:39 CEST 2008


Steffen Kamper wrote:
> Hi
> 
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=9313
> 
> Branches: trunk
> 
> Description:
> Now having t3lib_div::redirect it's good to have standard 
> HTTP_STATUS-Header available as class constants.
> This patch adds them according to Internet RFC 0002616

As the question came up with the redirect patch: Wouldn't it be better 
to have a class t3lib_http instead of loading more and more stuff into 
t3lib_div? I'd actually prefer to do it this way instead of putting all 
kinds of stuff into t3lib_div...


Things I could imagine for t3lib_http:

* these constants
* redirect() - t3lib_div then uses this class
* _GET
* _POST
* _GP
* getRequest() - gets the full http request
* getHeader()
* sendHeader()
* getUserAgent()
* move all the stuff from t3lib_div that doesn't really belong there 
here (if it has to do with HTTP)

Even more sofisticated would of course be to have a separate class for a 
http request and http response


Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2


More information about the TYPO3-team-core mailing list