PHP 클래스 eZ\Publish\Core\REST\Client\HttpClient\Authentication\BasicAuth

상속: implements eZ\Publish\Core\REST\Client\HttpClient
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$innerClient eZ\Publish\Core\REST\Client\HttpClient Inner HTTP client, performing the actual requests.
$password string Password for Basic Auth.
$username string User name for Basic Auth.

공개 메소드들

메소드 설명
__construct ( eZ\Publish\Core\REST\Client\HttpClient $innerClient, string $username, string $password ) Creates a new Basic Auth HTTP client.
request ( string $method, string $path, Message $message = null ) : Message Execute a HTTP request to the remote server.

메소드 상세

__construct() 공개 메소드

Creates a new Basic Auth HTTP client.
public __construct ( eZ\Publish\Core\REST\Client\HttpClient $innerClient, string $username, string $password )
$innerClient eZ\Publish\Core\REST\Client\HttpClient
$username string
$password string

request() 공개 메소드

Returns the result from the remote server. The client sets the correct headers for Basic Auth into the $message transmitted to the inner client.
public request ( string $method, string $path, Message $message = null ) : Message
$method string
$path string
$message eZ\Publish\Core\REST\Common\Message
리턴 eZ\Publish\Core\REST\Common\Message

프로퍼티 상세

$innerClient 보호되어 있는 프로퍼티

Inner HTTP client, performing the actual requests.
protected HttpClient,eZ\Publish\Core\REST\Client $innerClient
리턴 eZ\Publish\Core\REST\Client\HttpClient

$password 보호되어 있는 프로퍼티

Password for Basic Auth.
protected string $password
리턴 string

$username 보호되어 있는 프로퍼티

User name for Basic Auth.
protected string $username
리턴 string