Extends
lithium\core\Object
Aggregates read and write methods into a coherent request response
Parameters
- mixed $message a request object based on `\lithium\net\Message`
- array $options - '`response`': a fully-namespaced string for the response object
Returns
object a response object based on `\lithium\net\Message`Source
public function send($message = null, array $options = array()) {
$defaults = array('response' => $this->_classes['response']);
$options += $defaults;
if ($this->write($message)) {
$config = array('message' => $this->read()) + $this->_config;
return $this->_instance($options['response'], $config);
}
}