HarFileResponseFactory
in package
See: https://w3c.github.io/web-performance/specs/HAR/Overview.html.
Tags
Table of Contents
Properties
- $archiveFile : string
Methods
- __construct() : mixed
- __invoke() : ResponseInterface
- setArchiveFile() : void
- getContent() : string
Properties
$archiveFile
private
string
$archiveFile
Methods
__construct()
public
__construct(string $archiveFile) : mixed
Parameters
- $archiveFile : string
__invoke()
public
__invoke(string $method, string $url, array<string|int, mixed> $options) : ResponseInterface
Parameters
- $method : string
- $url : string
- $options : array<string|int, mixed>
Return values
ResponseInterfacesetArchiveFile()
public
setArchiveFile(string $archiveFile) : void
Parameters
- $archiveFile : string
getContent()
private
getContent(array{text: string, encoding: string} $content) : string
Parameters
- $content : array{text: string, encoding: string}