PHP Class Goutte\Client

Author: Fabien Potencier ([email protected])
Inheritance: extends Symfony\Components\BrowserKit\Client
Mostrar archivo Open project: fabpot/goutte Class Usage Examples

Protected Properties

Property Type Description
$client

Public Methods

Method Description
addPostFields ( array $formParams, array &$multipart, $arrayName = '' )
getClient ( )
removeHeader ( $name )
resetAuth ( )
resetHeaders ( )
restart ( )
setAuth ( $user, $password = '', $type = 'basic' )
setClient ( GuzzleHttp\ClientInterface $client )
setHeader ( $name, $value )

Protected Methods

Method Description
addPostFiles ( array $files, array &$multipart, $arrayName = '' )
createResponse ( Psr\Http\Message\ResponseInterface $response )
doRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Response

Method Details

addPostFields() public method

public addPostFields ( array $formParams, array &$multipart, $arrayName = '' )
$formParams array
$multipart array

addPostFiles() protected method

protected addPostFiles ( array $files, array &$multipart, $arrayName = '' )
$files array
$multipart array

createResponse() protected method

protected createResponse ( Psr\Http\Message\ResponseInterface $response )
$response Psr\Http\Message\ResponseInterface

doRequest() protected method

protected doRequest ( Symfony\Component\BrowserKit\Request $request ) : Symfony\Component\BrowserKit\Response
$request Symfony\Component\BrowserKit\Request
return Symfony\Component\BrowserKit\Response

getClient() public method

public getClient ( )

removeHeader() public method

public removeHeader ( $name )

resetAuth() public method

public resetAuth ( )

resetHeaders() public method

public resetHeaders ( )

restart() public method

public restart ( )

setAuth() public method

public setAuth ( $user, $password = '', $type = 'basic' )

setClient() public method

public setClient ( GuzzleHttp\ClientInterface $client )
$client GuzzleHttp\ClientInterface

setHeader() public method

public setHeader ( $name, $value )

Property Details

$client protected_oe property

protected $client