[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Http/Transport/ -> StreamTransport.php (summary)

Joomla! Content Management System

Copyright: (C) 2011 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 230 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

StreamTransport:: (3 methods):
  request()
  getResponse()
  isSupported()


Class: StreamTransport  - X-Ref

HTTP transport class for using PHP streams.

request($method, UriInterface $uri, $data = null, array $headers = [], $timeout = null, $userAgent = null)   X-Ref
Send a request to the server and return a Response object with the response.

param: string        $method     The HTTP method for sending the request.
param: UriInterface  $uri        The URI to the resource to request.
param: mixed         $data       Either an associative array or a string to be sent with the request.
param: array         $headers    An array of request headers to send with the request.
param: integer       $timeout    Read timeout in seconds.
param: string        $userAgent  The optional user agent string to send with the request.
return: Response

getResponse(array $headers, $body)   X-Ref
Method to get a response object from a server response.

param: array   $headers  The response headers as an array.
param: string  $body     The response body as a string.
return: Response

isSupported()   X-Ref
Method to check if http transport stream available for use

return: boolean  true if available else false



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer