Overview

Namespaces

  • Peridot
    • WebDriverManager
      • Binary
        • Decompression
        • Request
      • Console
      • Event
      • OS
      • Process
      • Test
  • PHP

Classes

  • StandardBinaryRequest

Interfaces

  • BinaryRequestInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class StandardBinaryRequest

StandardBinaryRequest uses file_get_contents with a stream context. It is capable of emitting download progress events containing bytes transferred, and bytes total.

Peridot\WebDriverManager\Binary\Request\StandardBinaryRequest implements Peridot\WebDriverManager\Binary\Request\BinaryRequestInterface uses Peridot\WebDriverManager\Event\EventEmitterTrait
Namespace: Peridot\WebDriverManager\Binary\Request
Package: Peridot\WebDriverManager\Binary
Located at Binary/Request/StandardBinaryRequest.php
Methods summary
public string
# request( mixed $url )

Request the binary at the specified url, and return the contents.

Request the binary at the specified url, and return the contents.

Parameters

$url

Returns

string

Implementation of

Peridot\WebDriverManager\Binary\Request\BinaryRequestInterface::request()
public
# onNotification( mixed $notification_code, mixed $severity, mixed $message, mixed $message_code, mixed $bytes_transferred, mixed $bytes_max )

Callback used when progress is made requesting.

Callback used when progress is made requesting.

Parameters

$notification_code
$severity
$message
$message_code
$bytes_transferred
$bytes_max
protected resource
# getContext( )

Create a context for file_get_contents.

Create a context for file_get_contents.

Returns

resource
Methods inherited from Peridot\WebDriverManager\Event\EventEmitterInterface
inherit()
Methods used from Peridot\WebDriverManager\Event\EventEmitterTrait
inherit()
WebDriver Manager API documentation generated by ApiGen