HTTPCollector
extends Collector
in package
Class HTTPCollector.
Table of Contents
- $activities : array<string|int, mixed>
- $data : array<string|int, mixed>
- $name : string
- $request : Request
- $response : Response
- __construct() : mixed
- addData() : static
- getActivities() : array<int, array<string, mixed>>
- getContents() : string
- getData() : array<string|int, mixed>
- getName() : string
- getSafeName() : string
- hasData() : bool
- setRequest() : static
- setResponse() : static
- getCodeLanguage() : string
- renderHeadersTable() : string
- renderRequest() : string
- renderRequestBody() : string
- renderRequestFiles() : string
- renderRequestForm() : string
- renderRequestUserAgent() : string
- renderResponse() : string
- renderResponseBody() : string
- renderResponseCookies() : string
Properties
$activities
protected
array<string|int, mixed>
$activities
= []
$data
protected
array<string|int, mixed>
$data
= []
$name
protected
string
$name
$request
protected
Request
$request
$response
protected
Response
$response
Methods
__construct()
public
__construct([string $name = 'default' ]) : mixed
Parameters
- $name : string = 'default'
Return values
mixed —addData()
public
addData(array<string|int, mixed> $data) : static
Parameters
- $data : array<string|int, mixed>
Return values
static —getActivities()
public
getActivities() : array<int, array<string, mixed>>
Return values
array<int, array<string, mixed>> —getContents()
public
getContents() : string
Return values
string —getData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed> —getName()
public
getName() : string
Return values
string —getSafeName()
public
getSafeName() : string
Return values
string —hasData()
public
hasData() : bool
Return values
bool —setRequest()
public
setRequest(Request $request) : static
Parameters
- $request : Request
Return values
static —setResponse()
public
setResponse(Response $response[, bool $replaceRequest = true ]) : static
Parameters
- $response : Response
- $replaceRequest : bool = true
Return values
static —getCodeLanguage()
protected
getCodeLanguage(string|null $contentType) : string
Parameters
- $contentType : string|null
Return values
string —renderHeadersTable()
protected
renderHeadersTable(array<string|int, string> $headerLines) : string
Parameters
- $headerLines : array<string|int, string>
Return values
string —renderRequest()
protected
renderRequest() : string
Return values
string —renderRequestBody()
protected
renderRequestBody() : string
Return values
string —renderRequestFiles()
protected
renderRequestFiles() : string
Return values
string —renderRequestForm()
protected
renderRequestForm() : string
Return values
string —renderRequestUserAgent()
protected
renderRequestUserAgent() : string
Return values
string —renderResponse()
protected
renderResponse() : string
Return values
string —renderResponseBody()
protected
renderResponseBody() : string
Return values
string —renderResponseCookies()
protected
renderResponseCookies() : string