Open Monograph Press  3.3.0
GuzzleHttp\Utils Class Reference

Static Public Member Functions

static currentTime ()
 
static idnUriConvert (UriInterface $uri, $options=0)
 

Detailed Description

Definition at line 8 of file Utils.php.

Member Function Documentation

◆ currentTime()

static GuzzleHttp\Utils::currentTime ( )
static

Wrapper for the hrtime() or microtime() functions (depending on the PHP version, one of the two is used)

Returns
float|mixed UNIX timestamp

Definition at line 18 of file Utils.php.

Referenced by GuzzleHttp\Handler\StreamHandler\__invoke(), and GuzzleHttp\Handler\CurlMultiHandler\tick().

◆ idnUriConvert()

static GuzzleHttp\Utils::idnUriConvert ( UriInterface  $uri,
  $options = 0 
)
static
Parameters
int$options
Returns
UriInterface
Exceptions
InvalidArgumentException

Definition at line 31 of file Utils.php.

References Psr\Http\Message\UriInterface\getHost(), and Psr\Http\Message\UriInterface\withHost().


The documentation for this class was generated from the following file: