PHP 클래스 Aerys\VhostContainer

상속: implements Countable, implements aerys\Monitor
파일 보기 프로젝트 열기: amphp/aerys 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( aerys\HttpDriver $driver )
__debugInfo ( )
count ( )
getBindableAddresses ( ) : array Retrieve an array of unique socket addresses on which hosts should listen
getDefaultHost ( ) : Vhost Retrieve the group's default host
getTlsBindingsByAddress ( ) : array Retrieve stream encryption settings by bind address
monitor ( ) : array
selectHost ( InternalRequest $ireq ) : Vhost | null Select a virtual host match for the specified request according to RFC 7230 criteria
selectHttpDriver ( $address, $port ) Select the suited HttpDriver instance, filtered by address and port pair
setupHttpDrivers ( $args )
use ( Vhost $vhost ) : void Add a virtual host to the collection

비공개 메소드들

메소드 설명
addHttpDriver ( Vhost $vhost )
preventCryptoSocketConflict ( Vhost $new )
selectHostByAuthority ( InternalRequest $ireq )

메소드 상세

__construct() 공개 메소드

public __construct ( aerys\HttpDriver $driver )
$driver aerys\HttpDriver

__debugInfo() 공개 메소드

public __debugInfo ( )

count() 공개 메소드

public count ( )

getBindableAddresses() 공개 메소드

Retrieve an array of unique socket addresses on which hosts should listen
public getBindableAddresses ( ) : array
리턴 array Returns an array of unique host addresses in the form: tcp://ip:port

getDefaultHost() 공개 메소드

Retrieve the group's default host
public getDefaultHost ( ) : Vhost
리턴 Vhost

getTlsBindingsByAddress() 공개 메소드

Retrieve stream encryption settings by bind address
public getTlsBindingsByAddress ( ) : array
리턴 array

monitor() 공개 메소드

public monitor ( ) : array
리턴 array

selectHost() 공개 메소드

Select a virtual host match for the specified request according to RFC 7230 criteria
public selectHost ( InternalRequest $ireq ) : Vhost | null
$ireq InternalRequest
리턴 Vhost | null Returns a Vhost object and boolean TRUE if a valid host selected, FALSE otherwise

selectHttpDriver() 공개 메소드

Select the suited HttpDriver instance, filtered by address and port pair
public selectHttpDriver ( $address, $port )

setupHttpDrivers() 공개 메소드

public setupHttpDrivers ( $args )

use() 공개 메소드

Add a virtual host to the collection
public use ( Vhost $vhost ) : void
$vhost Vhost
리턴 void