|
| write ($method, $uri, $http_ver= '1.1', $headers=array(), $body= '') |
| Send request to the remote server with streaming support.
|
|
| __construct () |
| Adapter constructor, currently empty.
|
|
| setConfig ($config=array()) |
| Set the configuration array for the adapter.
|
|
| getConfig () |
| Retrieve the array of all configuration options.
|
|
| setStreamContext ($context) |
| Set the stream context for the TCP connection to the server.
|
|
| getStreamContext () |
| Get the stream context for the TCP connection to the server.
|
|
| connect ($host, $port=80, $secure=false) |
| Connect to the remote server.
|
|
| write ($method, $uri, $http_ver= '1.1', $headers=array(), $body= '') |
| Send request to the remote server.
|
|
| read () |
| Read response from server.
|
|
| close () |
| Close the connection to the server.
|
|
| setOutputStream ($stream) |
| Set output stream for the response.
|
|
| __destruct () |
| Destructor: make sure the socket is disconnected.
|
|