From 20dd0db7049209a5f43697d8bba8eadb63736bce Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 15 Sep 2009 20:29:41 -0400 Subject: move httputil to httpclient --- lib/httpclient.php | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/httputil.php | 80 ------------------------------------------------------ 2 files changed, 80 insertions(+), 80 deletions(-) create mode 100644 lib/httpclient.php delete mode 100644 lib/httputil.php diff --git a/lib/httpclient.php b/lib/httpclient.php new file mode 100644 index 000000000..5c1f4f3e1 --- /dev/null +++ b/lib/httpclient.php @@ -0,0 +1,80 @@ +. + * + * @category Action + * @package Laconica + * @author Evan Prodromou + * @copyright 2009 Control Yourself, Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 + * @link http://laconi.ca/ + */ + +if (!defined('LACONICA')) { + exit(1); +} + +/** + * Utility class for doing HTTP-related stuff + * + * We make HTTP calls in several places, and we have several different + * ways of doing them. This class hides the specifics of what underlying + * library (curl or PHP-HTTP or whatever) that's used. + * + * @category HTTP + * @package Laconica + * @author Evan Prodromou + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 + * @link http://laconi.ca/ + */ + +class HTTPResponse +{ + var $code = null; + var $headers = null; + var $body = null; +} + +class HTTPClientUtil +{ + function __construct() + { + } + + function head($url, $headers) + { + } + + function get($url, $headers) + { + } + + function post($url, $headers, $body) + { + } + + function put($url, $headers, $body) + { + } + + function delete($url, $headers) + { + } +} diff --git a/lib/httputil.php b/lib/httputil.php deleted file mode 100644 index 5c1f4f3e1..000000000 --- a/lib/httputil.php +++ /dev/null @@ -1,80 +0,0 @@ -. - * - * @category Action - * @package Laconica - * @author Evan Prodromou - * @copyright 2009 Control Yourself, Inc. - * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ - */ - -if (!defined('LACONICA')) { - exit(1); -} - -/** - * Utility class for doing HTTP-related stuff - * - * We make HTTP calls in several places, and we have several different - * ways of doing them. This class hides the specifics of what underlying - * library (curl or PHP-HTTP or whatever) that's used. - * - * @category HTTP - * @package Laconica - * @author Evan Prodromou - * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ - */ - -class HTTPResponse -{ - var $code = null; - var $headers = null; - var $body = null; -} - -class HTTPClientUtil -{ - function __construct() - { - } - - function head($url, $headers) - { - } - - function get($url, $headers) - { - } - - function post($url, $headers, $body) - { - } - - function put($url, $headers, $body) - { - } - - function delete($url, $headers) - { - } -} -- cgit v1.2.3-54-g00ecf