lithium\data\source\Http::create()

public method

Create function used to POST.

Parameters

  • object $query
  • array $options

Returns

mixed

Filter

This method can be filtered.

Source

	public function create($query, array $options = array()) {
		$query = !is_object($query) ? new Query() : $query;
		$query->method() ?: $query->method("post");
		$query->path() ?: $query->path("/{:source}");
		return $this->_filter(__METHOD__, array($query, $options), function($self, $params) {
			list($query, $options) = $params;
			return $self->send($query, $options);
		});
	}