2626 * HTTP transport class for using sockets directly.
2727 *
2828 * @since 1.7.3
29+ * @deprecated __DEPLOY_VERSION__ will be removed in 7.0
30+ * Use Joomla\Http\Transport\Socket instead
2931 */
3032class SocketTransport extends AbstractTransport implements TransportInterface
3133{
@@ -47,8 +49,10 @@ class SocketTransport extends AbstractTransport implements TransportInterface
4749 *
4850 * @return Response
4951 *
50- * @since 1.7.3
5152 * @throws \RuntimeException
53+ * @since 1.7.3
54+ * @deprecated __DEPLOY_VERSION__ will be removed in 7.0
55+ * Use Joomla\Http\Transport\Socket::request() instead
5256 */
5357 public function request ($ method , UriInterface $ uri , $ data = null , array $ headers = [], $ timeout = null , $ userAgent = null )
5458 {
@@ -144,8 +148,10 @@ public function request($method, UriInterface $uri, $data = null, array $headers
144148 *
145149 * @return Response
146150 *
147- * @since 1.7.3
148151 * @throws InvalidResponseCodeException
152+ * @since 1.7.3
153+ * @deprecated __DEPLOY_VERSION__ will be removed in 7.0
154+ * Use Joomla\Http\Transport\Socket::getResponse() instead
149155 */
150156 protected function getResponse ($ content )
151157 {
@@ -188,8 +194,10 @@ protected function getResponse($content)
188194 *
189195 * @return resource Socket connection resource.
190196 *
191- * @since 1.7.3
192197 * @throws \RuntimeException
198+ * @since 1.7.3
199+ * @deprecated __DEPLOY_VERSION__ will be removed in 7.0
200+ * Use Joomla\Http\Transport\Socket::connect() instead
193201 */
194202 protected function connect (UriInterface $ uri , $ timeout = null )
195203 {
@@ -270,6 +278,8 @@ protected function connect(UriInterface $uri, $timeout = null)
270278 * @return boolean True if available else false
271279 *
272280 * @since 3.0.0
281+ * @deprecated __DEPLOY_VERSION__ will be removed in 7.0
282+ * Use Joomla\Http\Transport\Socket::isSupported() instead
273283 */
274284 public static function isSupported ()
275285 {
0 commit comments