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
Return values
stringisRemote()
Is this a remote file or not
public
static isRemote(string $file) : bool
Parameters
- $file : string
Return values
boolrequest()
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
curlandfopen - $callback : callable|null = null
-
Either a function or callback in array notation