lithium\data\source\Http::create()
Implements
lithium\data\Source::create()
Create function used to POST.
Parameters
-
object
$query
-
array
$options
Returns
mixedFilter
This method can be filtered.
Source
public function create($query, array $options = []) {
$query = !is_object($query) ? new Query() : $query;
$query->method() ?: $query->method("post");
$query->path() ?: $query->path("/{:source}");
$params = [$query, $options];
return Filters::run($this, __FUNCTION__, $params, function($params) {
list($query, $options) = $params;
return $this->send($query, $options);
});
}