Skip to content

Commit

Permalink
Add first batch of skeleton classes for new Http client.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 18, 2012
1 parent c41d851 commit 2da4b7f
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/Cake/Network/Http/Adapter/Stream.php
@@ -0,0 +1,22 @@
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since CakePHP(tm) v 3.0.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Network\Http\Adapter;

/**
* Implements sending Cake\Network\Http\Request
* via php's stream API.
*
*/
class Stream {
}
21 changes: 21 additions & 0 deletions lib/Cake/Network/Http/Client.php
@@ -0,0 +1,21 @@
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since CakePHP(tm) v 3.0.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Network\Http;

/**
* The end user interface for doing HTTP requests.
*
*/
class Client {
}
26 changes: 26 additions & 0 deletions lib/Cake/Network/Http/FormData.php
@@ -0,0 +1,26 @@
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since CakePHP(tm) v 3.0.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Network\Http;

/**
* Provides an interface for building
* multipart/form-encoded message bodies.
*
* Used by Http\Client to upload POST/PUT data
* and files.
*
*/
class FormData {
}

25 changes: 25 additions & 0 deletions lib/Cake/Network/Http/FormData/Part.php
@@ -0,0 +1,25 @@
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since CakePHP(tm) v 3.0.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace Cake\Network\Http\FormData;

/**
* Contains the data and behavior for a single
* part in a Multipart FormData request body.
*
* Added to Cake\Network\Http\FormData when sending
* data to a remote server.
*/
class Part {

}

0 comments on commit 2da4b7f

Please sign in to comment.