Extends
lithium\net\http\Request
Overrides `lithium\net\http\Request::to()` to provide the correct options for generating
URLs. For information about this method, see the parent implementation.
Parameters
- string $format The format to convert to.
- array $options Override options.
Returns
mixed The return value type depends on `$format`.Source
public function to($format, array $options = array()) {
$defaults = array(
'scheme' => $this->env('HTTPS') ? 'https' : 'http',
'host' => $this->env('HTTP_HOST'),
'path' => $this->_base . '/' . $this->url
);
return parent::to($format, $options + $defaults);
}