Back to Joomla project (class list)

Class StreamTransport - list of methods

HTTP transport class for using PHP streams.

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/StreamTransport.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
(array $headers, mixed $body)

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

public static bool
()

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

Tags Summary

Since
1.7.3