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

Class: Microsoft_Http_Client_Adapter_Interface

Source Location: /Http/Client/Adapter/Interface.php

Interface Overview


An interface description for Microsoft_Http_Client_Adapter classes.


Author(s):

Copyright:

  • Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)

Methods



Class Details

[line 36]
An interface description for Microsoft_Http_Client_Adapter classes.

These classes are used as connectors for Microsoft_Http_Client, performing the tasks of connecting, writing, reading and closing connection to the server.




Tags:

copyright:  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
license:  New BSD License


[ Top ]


Class Methods


method close [line 77]

void close( )

Close the connection to the server



Tags:

access:  public


[ Top ]

method connect [line 52]

void connect( string $host, [int $port = 80], [boolean $secure = false])

Connect to the remote server



Tags:

access:  public


Parameters:

string   $host  
int   $port  
boolean   $secure  

[ Top ]

method read [line 71]

string read( )

Read response from server



Tags:

access:  public


[ Top ]

method setConfig [line 43]

void setConfig( [array $config = array()])

Set the configuration array for the adapter



Tags:

access:  public


Parameters:

array   $config  

[ Top ]

method write [line 64]

string write( string $method, Microsoft_Uri_Http $url, [string $http_ver = '1.1'], [array $headers = array()], [string $body = ''])

Send request to the remote server



Tags:

return:  Request as text
access:  public


Parameters:

string   $method  
Microsoft_Uri_Http   $url  
string   $http_ver  
array   $headers  
string   $body  

[ Top ]


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