Documentation

Response
in package

Class Response

Table of Contents

Methods

get()  : string
Backwards compatible helper method
isRemote()  : bool
Is this a remote file or not
request()  : ResponseInterface
Makes a request to the URL by using the preferred method

Methods

get()

Backwards compatible helper method

public static get([string $uri = '' ][, array<string|int, mixed> $overrides = [] ][, callable|null $callback = null ]) : string
Parameters
$uri : string = ''
$overrides : array<string|int, mixed> = []
$callback : callable|null = null
Tags
throws
TransportExceptionInterface|RedirectionExceptionInterface|ServerExceptionInterface|ClientExceptionInterface
Return values
string

isRemote()

Is this a remote file or not

public static isRemote(string $file) : bool
Parameters
$file : string
Return values
bool

request()

Makes a request to the URL by using the preferred method

public static request(string $method, string $uri[, array<string|int, mixed> $overrides = [] ][, callable|null $callback = null ]) : ResponseInterface
Parameters
$method : string

method to call such as GET, PUT, etc

$uri : string

URL to call

$overrides : array<string|int, mixed> = []

An array of parameters for both curl and fopen

$callback : callable|null = null

Either a function or callback in array notation

Tags
throws
TransportExceptionInterface
Return values
ResponseInterface

        
On this page

Search results