$httpHeaderFields
$httpHeaderFields : \FACTFinder\Util\Parameters
Represents all data belonging to a single connection. It holds all data necessary to configure a request and can also be filled with the corresponding response.
$httpHeaderFields : \FACTFinder\Util\Parameters
$parameters : \FACTFinder\Util\Parameters
$response : \FACTFinder\Core\Server\Response
__construct(\FACTFinder\Util\Parameters $parameters = null) : \FACTFinder\Core\Server\type
Optionally takes a Parameters object to initialize the query parameters.
| \FACTFinder\Util\Parameters | $parameters |
getHttpHeaderFields() : \FACTFinder\Util\Parameters
Returns the parameters object used for the connection, on which HTTP header fields can be read and changed.
getParameters() : \FACTFinder\Util\Parameters
Returns the parameters object used for the connection, on which query parameters can be read and changed.
setConnectionOption(mixed $name, mixed $value)
Set an option for the connection. This can be an arbitrary pair of key and value. How this is used depends on the kind of connection that is set up (e.g. cURL or socket). We simply provide an array to store options specific to this connection.
| mixed | $name | The option's identifier. This can be any value that is a valid array index in PHP (hence, it SHOULD be a string or an integer; all other types will be interpreted as a string). |
| mixed | $value | The option's value. |
setConnectionOptions(array<mixed,mixed> $options)
Sets all given connection options at once. If an option with the same name already exists, the old value will be replaced. Options that are not contained in the $options parameter will retain their value(s).
| array<mixed,mixed> | $options | An array of options. For more information on valid keys and values see setConnectionOption($name, $value). |
setResponse(\FACTFinder\Core\Server\Response $response, string $url)
Set a response for the current connection settings along with the URL which was used to obtain the response.
| \FACTFinder\Core\Server\Response | $response | |
| string | $url | The URL corresponding to $response. |
getResponse() : \FACTFinder\Core\Server\Response
Get the response that was most recently set.