Microsoft_Http
[ class tree: Microsoft_Http ] [ index: Microsoft_Http ] [ all elements ]

Source for file Interface.php

Documentation is available at Interface.php

  1. <?php
  2.  
  3. /**
  4.  * Zend Framework
  5.  *
  6.  * LICENSE
  7.  *
  8.  * This source file is subject to the new BSD license that is bundled
  9.  * with this package in the file LICENSE.txt.
  10.  * It is also available through the world-wide-web at this URL:
  11.  * http://framework.zend.com/license/new-bsd
  12.  * If you did not receive a copy of the license and are unable to
  13.  * obtain it through the world-wide-web, please send an email
  14.  * to license@zend.com so we can send you a copy immediately.
  15.  *
  16.  * @category   Microsoft
  17.  * @package    Microsoft_Http
  18.  * @subpackage Client_Adapter
  19.  * @version    $Id: Interface.php 16214 2009-06-21 19:34:03Z thomas $
  20.  * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  21.  * @license    http://framework.zend.com/license/new-bsd     New BSD License
  22.  */
  23.  
  24. /**
  25.  * An interface description for Microsoft_Http_Client_Adapter classes.
  26.  *
  27.  * These classes are used as connectors for Microsoft_Http_Client, performing the
  28.  * tasks of connecting, writing, reading and closing connection to the server.
  29.  *
  30.  * @category   Microsoft
  31.  * @package    Microsoft_Http
  32.  * @subpackage Client_Adapter
  33.  * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  34.  * @license    http://framework.zend.com/license/new-bsd     New BSD License
  35.  */
  36. {
  37.     /**
  38.      * Set the configuration array for the adapter
  39.      *
  40.      * @param array $config 
  41.      */
  42.     public function setConfig($config array());
  43.  
  44.     /**
  45.      * Connect to the remote server
  46.      *
  47.      * @param string  $host 
  48.      * @param int     $port 
  49.      * @param boolean $secure 
  50.      */
  51.     public function connect($host$port 80$secure false);
  52.  
  53.     /**
  54.      * Send request to the remote server
  55.      *
  56.      * @param string        $method 
  57.      * @param Microsoft_Uri_Http $url 
  58.      * @param string        $http_ver 
  59.      * @param array         $headers 
  60.      * @param string        $body 
  61.      * @return string Request as text
  62.      */
  63.     public function write($method$url$http_ver '1.1'$headers array()$body '');
  64.  
  65.     /**
  66.      * Read response from server
  67.      *
  68.      * @return string 
  69.      */
  70.     public function read();
  71.  
  72.     /**
  73.      * Close the connection to the server
  74.      *
  75.      */
  76.     public function close();
  77. }

Documentation generated on Wed, 18 May 2011 12:06:39 +0200 by phpDocumentor 1.4.3