Back to Joomla project (class list)

Class SocketTransport - list of methods

HTTP transport class for using sockets directly.

Extends

Package: Joomla\CMS\Http\Transport
Copyright: (C) 2011 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Http/Transport/SocketTransport.php
Project: Joomla

Method Summary

public \Joomla\CMS\Http\Response
(mixed $method, \Joomla\Uri\UriInterface $uri, mixed $data = null, array $headers = [], mixed $timeout = null, mixed $userAgent = null)

Send a request to the server and return a Response object with the response.
Parameters
  • string $method The HTTP method for sending the request.
  • \Joomla\Uri\UriInterface $uri The URI to the resource to request.
  • mixed $data Either an associative array or a string to be sent with the request.
  • array $headers An array of request headers to send with the request.
  • int $timeout Read timeout in seconds.
  • string $userAgent The optional user agent string to send with the request.
Returns
  • \Joomla\CMS\Http\Response
Since
  • 1.7.3
-
  • \RuntimeException
Show source code of this method: request Source Code

protected \Joomla\CMS\Http\Response
(mixed $content)

Method to get a response object from a server response.
Parameters
  • string $content The complete server response, including headers.
Returns
  • \Joomla\CMS\Http\Response
Since
  • 1.7.3
-
  • \Joomla\Http\Exception\InvalidResponseCodeException
Show source code of this method: getResponse Source Code

protected resource
(\Joomla\Uri\UriInterface $uri, mixed $timeout = null)

Method to connect to a server and get the resource.
Parameters
  • \Joomla\Uri\UriInterface $uri The URI to connect with.
  • int $timeout Read timeout in seconds.
Returns
  • resource Socket connection resource.
Since
  • 1.7.3
-
  • \RuntimeException
Show source code of this method: connect Source Code

public static bool
()

Method to check if http transport socket available for use
Returns
  • bool True if available else false
Since
  • 3.0.0
Show source code of this method: isSupported Source Code

Properties Summary

protected array
$connections
Since
  • 1.7.3

Tags Summary

Since
1.7.3