PHP Trait eZ\Bundle\EzPublishRestBundle\Features\Context\RestClient\DriverHelper

Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode Description
getHeader ( string $header ) : string Get response header.
setAuthentication ( string $user, string $password, string $type = self::AUTH_TYPE_BASIC ) Set authentication.
setHeaders ( array $headers ) Set request headers.

Méthodes protégées

Méthode Description
makeAuthentication ( $username, string $password, string $type ) : string Make/Crypt the authentication value.

Method Details

getHeader() public méthode

Get response header.
public getHeader ( string $header ) : string
$header string Header to fetch
Résultat string Header value, or a list if its more than one

makeAuthentication() protected méthode

Make/Crypt the authentication value.
protected makeAuthentication ( $username, string $password, string $type ) : string
$password string
$type string The type of authentication
Résultat string Authentication value

setAuthentication() public méthode

Set authentication.
public setAuthentication ( string $user, string $password, string $type = self::AUTH_TYPE_BASIC )
$user string
$password string
$type string Authentication type

setHeaders() public méthode

Set request headers.
public setHeaders ( array $headers )
$headers array Associative array with $header => $value (value can be an array if it hasn't a single value)