public function encodeData()
	{
		switch ($this->encoding) {
			case static::ENCODING_JSON:
				return json_encode($this->data);
			case static::ENCODING_QUERY:
				return (!is_null($this->data) ? http_build_query($this->data) : '');
			case static::ENCODING_RAW:
				return $this->data;
			default:
				$msg = "Encoding [$this->encoding] not a known Request::ENCODING_* constant";
				throw new \UnexpectedValueException($msg);
		}
	}