PHP Класс Aerys\Vhost

Наследование: implements aerys\Monitor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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