public function encodeData()
	{
		switch ($this->encoding) {
			case Request::ENCODING_JSON:
				return json_encode($this->data);
				break;

			case Request::ENCODING_RAW:
				return (string) $this->data;
				break;

			case Request::ENCODING_QUERY:
				return http_build_query($this->data);
				break;

			default:
				throw new \UnexpectedValueException("Encoding [$encoding] not a known Request::ENCODING_* constant");
		}
	}