class Client in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/http-kernel/Client.php \Symfony\Component\HttpKernel\Client
- 8 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client
- 8 vendor/fabpot/goutte/Goutte/Client.php \Goutte\Client
- 8 vendor/guzzlehttp/guzzle/src/Client.php \GuzzleHttp\Client
- 8 vendor/behat/mink-goutte-driver/src/Goutte/Client.php \Behat\Mink\Driver\Goutte\Client
Same name and namespace in other branches
- 8.0 vendor/behat/mink-goutte-driver/src/Goutte/Client.php \Behat\Mink\Driver\Goutte\Client
Client overrides to support Mink functionality.
Hierarchy
- class \Symfony\Component\BrowserKit\Client
Expanded class hierarchy of Client
1 file declares its use of Client
- GoutteDriver.php in vendor/
behat/ mink-goutte-driver/ src/ GoutteDriver.php
File
- vendor/
behat/ mink-goutte-driver/ src/ Goutte/ Client.php, line 19
Namespace
Behat\Mink\Driver\GoutteView source
class Client extends BaseClient {
/**
* Reads response meta tags to guess content-type charset.
*
* @param Response $response
*
* @return Response
*/
protected function filterResponse($response) {
$contentType = $response
->getHeader('Content-Type');
if (!$contentType || false === strpos($contentType, 'charset=')) {
if (preg_match('/\\<meta[^\\>]+charset *= *["\']?([a-zA-Z\\-0-9]+)/i', $response
->getContent(), $matches)) {
$headers = $response
->getHeaders();
$headers['Content-Type'] = $contentType . ';charset=' . $matches[1];
$response = new Response($response
->getContent(), $response
->getStatus(), $headers);
}
}
return parent::filterResponse($response);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Client:: |
private | property | ||
Client:: |
protected | property | ||
Client:: |
protected | property | ||
Client:: |
protected | property | ||
Client:: |
protected | property | ||
Client:: |
private | property | ||
Client:: |
protected | property | ||
Client:: |
protected | property | ||
Client:: |
protected | property | ||
Client:: |
protected | property | ||
Client:: |
private | property | ||
Client:: |
private | property | ||
Client:: |
protected | property | ||
Client:: |
private | property | ||
Client:: |
protected | property | ||
Client:: |
protected | property | ||
Client:: |
protected | property | ||
Client:: |
public | function | ||
Client:: |
protected | function | ||
Client:: |
public | function | Goes back in the browser history. | |
Client:: |
public | function | Clicks on a given link. | |
Client:: |
protected | function | Creates a crawler. | |
Client:: |
protected | function | ||
Client:: |
protected | function |
Overrides Client:: |
|
Client:: |
protected | function | Makes a request in another process. | |
Client:: |
private | function | ||
Client:: |
protected | function | Filters the BrowserKit request to the origin one. | 1 |
Client:: |
protected | function |
Reads response meta tags to guess content-type charset. Overrides Client:: |
|
Client:: |
public | function | Follow redirects? | |
Client:: |
public | function | Sets whether to automatically follow redirects or not. | |
Client:: |
public | function | Goes forward in the browser history. | |
Client:: |
protected | function | Takes a URI and converts it to absolute if it is not already absolute. | |
Client:: |
public | function | ||
Client:: |
public | function | Returns the CookieJar instance. | |
Client:: |
public | function | Returns the current Crawler instance. | |
Client:: |
public | function | Returns the History instance. | |
Client:: |
public | function | Returns the current BrowserKit Request instance. | |
Client:: |
public | function | Returns the current BrowserKit Response instance. | |
Client:: |
public | function | Returns the current origin Request instance. | 1 |
Client:: |
public | function | Returns the current origin response instance. | 1 |
Client:: |
protected | function | Returns the script to execute when the request must be insulated. | 3 |
Client:: |
public | function | Gets single server parameter for specified key. | |
Client:: |
public | function | Sets the insulated flag. | |
Client:: |
public | function | Reloads the current browser. | |
Client:: |
public | function | ||
Client:: |
public | function | Calls a URI. | |
Client:: |
protected | function | Makes a request from a Request object directly. | |
Client:: |
public | function | ||
Client:: |
public | function | Restarts the client. | |
Client:: |
public | function | ||
Client:: |
public | function | ||
Client:: |
public | function | ||
Client:: |
public | function | Sets the maximum number of requests that crawler can follow. | |
Client:: |
public | function | Sets single server parameter. | |
Client:: |
public | function | Sets server parameters. | |
Client:: |
public | function | Submits a form. | |
Client:: |
private | function | ||
Client:: |
public | function | Constructor. | 1 |