|
|
@@ -1153,7 +1153,7 @@ class Response implements ResponseInterface
|
|
|
*
|
|
|
* @param string|null $charset Character set string.
|
|
|
* @return string Current charset
|
|
|
- * @deprecated 3.4.0 Use withCharset() instead.
|
|
|
+ * @deprecated 3.5.0 Use getCharset()/withCharset() instead.
|
|
|
*/
|
|
|
public function charset($charset = null)
|
|
|
{
|
|
|
@@ -1167,6 +1167,16 @@ class Response implements ResponseInterface
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Retruns the current charset.
|
|
|
+ *
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
+ public function getCharset()
|
|
|
+ {
|
|
|
+ return $this->_charset;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Get a new instance with an updated charset.
|
|
|
*
|
|
|
* @param string $charset Character set string.
|