Antoine Musso
fc6bc233be
Fix doxygen docs before REL1_19 branching
2012-02-01 20:53:38 +00:00
Sam Reed
6d466491c6
Followup r94211
...
Bug 30315 - Declaration of FauxResponse::setcookie() should be compatible with that of WebResponse::setcookie()
2011-08-11 00:17:58 +00:00
Chad Horohoe
052f542165
Allow overriding $wgCookiePrefix and $wgCookieDomain in WebResponse::setcookie() so I can stop crying when I look at things like CentralAuth and CentralNotice
2011-08-10 23:27:10 +00:00
Alexandre Emsenhuber
0511b15706
* Added some tests for FauxResponse class
...
* Made some fixes to that class and removed one unused variable
2011-07-13 20:16:14 +00:00
Alexandre Emsenhuber
303eb51924
Per Brion, fix for r91460: make this a bit more robust
2011-07-05 16:40:12 +00:00
Alexandre Emsenhuber
2f7f99b1f1
* Don't create a WebRequest obhject in CLI mode but a FauxRequest; avoids some useless notices about headers already sent (I know this is more a PHP silliness, but anyway)
...
* Added HTTP response code parsing (sending a "HTTP/1.x code" header was throwing a NOTICE about undefined index on the result of the explode() call) and storage; added FauxResponse::getStatusCode() to retrieve it
2011-07-05 15:05:14 +00:00
Alexandre Emsenhuber
e7eaf43077
Added some GPL headers
2011-06-28 18:21:59 +00:00
Sam Reed
d3cd73cc25
Documentation updates and additions
2011-06-05 21:04:48 +00:00
Sam Reed
29d159aeba
* (bug 22179) Internal use of API (FauxRequest) results in HTTP headers being set
...
Per Chad, switch API to use WebResponse::header() wrapper
Add $http_response_code to WebResponse::header()
Fix some code spacing/whitespace issues
2011-06-05 19:51:31 +00:00
Alexandre Emsenhuber
bc8abfe5b1
Drop 5.1 compatibility calls to session_set_cookie_params() and setcookie() since we require 5.2.3+ now
2011-04-01 09:50:09 +00:00
Alexandre Emsenhuber
7b79d94515
* Standardised file description headers
...
* Added some descriptions
* Added @file where needed
2010-08-14 17:42:40 +00:00
Mark A. Hershberger
c74fe71cd8
* new FauxResponse class to help with unit testing
...
* Add append() method to FileRepo classes to enable chunked uploading
* Change chunksessionkey to chunksession
* Remove echo json stuff
* Fix a multitude of bugs in my own code
* still to test: mwEmbed use of chunked upload
2010-02-10 10:36:11 +00:00
Aaron Schulz
c155fd4e4a
Revert r43804 'This should probably be in Response, not Request, as we're setting data, not getting it. Nothing's using it yet (fairly new), so nothing to update.'
...
Session id is used by client request to specify its login data from cookie, so the session data, by extensions, is like a sort of request parameter. Also, WebResponse.php seems to be used for data actually sent to the client, like requested cookies.
2008-11-21 09:55:13 +00:00
Chad Horohoe
bf244b740f
This should probably be in Response, not Request, as we're setting data, not getting it. Nothing's using it yet (fairly new), so nothing to update.
2008-11-21 09:01:26 +00:00
Alexandre Emsenhuber
a1ce0224ad
fix some doxygen warnings
2008-09-17 14:26:43 +00:00
Chad Horohoe
3064f477ff
Add @ingroup definitions to these. Created new group HTTP for web-related things (cookies, headers, HTTP requests, etc).
2008-09-03 17:30:20 +00:00
Chad Horohoe
9dc6b435cf
Clarified visibility + docs
2008-08-24 03:06:03 +00:00
Chad Horohoe
88ba444d0d
Remove boneheaded config var $wgEnablePersistentCookies. Setting the default expiration to 0 now makes the cookies session-only (seeing as it was largely ignored)
2008-08-18 19:57:01 +00:00
Chad Horohoe
98c86aa7ff
* Bug 12976: Use $WebResponse->setCookie() rather than raw setcookie() calls.
...
* Moved all of the debugging/logic to WebResponse so it can be properly used elsewhere.
* A bit of cleanup so cookies set by $wgUser->setCookie() use $wgCookiePath as they should.
* Bug 14887: $wgEnablePersistentCookies has been added to allow for disabling of persistent cookies.
2008-08-15 01:54:59 +00:00
Siebrand Mazeland
79d5225c0e
* remove end of line whitespace
...
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Aryeh Gregor
a15c419b3d
Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.)
2007-06-29 01:19:14 +00:00
Antoine Musso
16558d1dbc
Added some comments to our classes.
2007-04-21 12:42:27 +00:00
Domas Mituzas
8974bfd94b
add some abstraction for web responses, so far minimal and not that used, requires discussion, conflicts and reverts %)
2006-08-12 23:03:53 +00:00