PHP 트레잇 eZ\Bundle\EzPublishRestBundle\Features\Context\RestClient\DriverHelper

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
makeAuthentication ( $username, string $password, string $type ) : string Make/Crypt the authentication value.

메소드 상세

getHeader() 공개 메소드

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

makeAuthentication() 보호된 메소드

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

setAuthentication() 공개 메소드

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

setHeaders() 공개 메소드

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)