PHP 클래스 Aerys\Vhost

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

공개 메소드들

메소드 설명
__construct ( string $name, array $interfaces, callable $application, array $filters, array $monitors = [], aerys\HttpDriver $driver = null )
__debugInfo ( ) : array Simplify debug output
__toString ( ) : string Returns the host name
getApplication ( ) : callable Retrieve the host's callable application
getBindableAddresses ( ) : array Retrieve the URIs on which this host should be bound
getFilters ( ) : array Retrieve filters registered for this host
getHttpDriver ( )
getIds ( ) : array Retrieve the name:port IDs for this host
getInterfaces ( ) : array Retrieve the list of address-port pairs on which this host listens (address may be a wildcard "0.0.0.0" or "[::]")
getName ( ) : string Retrieve the host's name (may be an empty string)
getPorts ( string $address ) : array
getTlsContextArr ( ) : array Retrieve this host's TLS connection context options
hasName ( ) : boolean Does this host have a name?
isEncrypted ( ) : boolean Has this host been assigned a TLS encryption context?
monitor ( ) : array
setCrypto ( array $tls ) : void Define TLS encryption settings for this host

비공개 메소드들

메소드 설명
addInterface ( array $interface )
hasAlpnSupport ( ) : boolean
normalizeTlsCryptoMethod ( array $tls ) : array
parseNamesFromTlsCertArray ( array $cert ) : array

메소드 상세

__construct() 공개 메소드

public __construct ( string $name, array $interfaces, callable $application, array $filters, array $monitors = [], aerys\HttpDriver $driver = null )
$name string
$interfaces array
$application callable
$filters array
$monitors array
$driver aerys\HttpDriver

__debugInfo() 공개 메소드

Simplify debug output
public __debugInfo ( ) : array
리턴 array

__toString() 공개 메소드

Returns the host name
public __toString ( ) : string
리턴 string

getApplication() 공개 메소드

Retrieve the host's callable application
public getApplication ( ) : callable
리턴 callable

getBindableAddresses() 공개 메소드

Retrieve the URIs on which this host should be bound
public getBindableAddresses ( ) : array
리턴 array

getFilters() 공개 메소드

Retrieve filters registered for this host
public getFilters ( ) : array
리턴 array

getHttpDriver() 공개 메소드

public getHttpDriver ( )

getIds() 공개 메소드

Retrieve the name:port IDs for this host
public getIds ( ) : array
리턴 array

getInterfaces() 공개 메소드

Retrieve the list of address-port pairs on which this host listens (address may be a wildcard "0.0.0.0" or "[::]")
public getInterfaces ( ) : array
리턴 array

getName() 공개 메소드

Retrieve the host's name (may be an empty string)
public getName ( ) : string
리턴 string

getPorts() 공개 메소드

public getPorts ( string $address ) : array
$address string
리턴 array

getTlsContextArr() 공개 메소드

Retrieve this host's TLS connection context options
public getTlsContextArr ( ) : array
리턴 array An array of stream encryption context options

hasName() 공개 메소드

Does this host have a name?
public hasName ( ) : boolean
리턴 boolean

isEncrypted() 공개 메소드

Has this host been assigned a TLS encryption context?
public isEncrypted ( ) : boolean
리턴 boolean Returns true if a TLS context is assigned, false otherwise

monitor() 공개 메소드

public monitor ( ) : array
리턴 array

setCrypto() 공개 메소드

Define TLS encryption settings for this host
public setCrypto ( array $tls ) : void
$tls array An array mapping TLS stream context values
리턴 void