PHP Class Aerys\Vhost

Inheritance: implements aerys\Monitor
Afficher le fichier Open project: amphp/aerys Class Usage Examples

Méthodes publiques

Méthode Description
__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

Private Methods

Méthode Description
addInterface ( array $interface )
hasAlpnSupport ( ) : boolean
normalizeTlsCryptoMethod ( array $tls ) : array
parseNamesFromTlsCertArray ( array $cert ) : array

Method Details

__construct() public méthode

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() public méthode

Simplify debug output
public __debugInfo ( ) : array
Résultat array

__toString() public méthode

Returns the host name
public __toString ( ) : string
Résultat string

getApplication() public méthode

Retrieve the host's callable application
public getApplication ( ) : callable
Résultat callable

getBindableAddresses() public méthode

Retrieve the URIs on which this host should be bound
public getBindableAddresses ( ) : array
Résultat array

getFilters() public méthode

Retrieve filters registered for this host
public getFilters ( ) : array
Résultat array

getHttpDriver() public méthode

public getHttpDriver ( )

getIds() public méthode

Retrieve the name:port IDs for this host
public getIds ( ) : array
Résultat array

getInterfaces() public méthode

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
Résultat array

getName() public méthode

Retrieve the host's name (may be an empty string)
public getName ( ) : string
Résultat string

getPorts() public méthode

public getPorts ( string $address ) : array
$address string
Résultat array

getTlsContextArr() public méthode

Retrieve this host's TLS connection context options
public getTlsContextArr ( ) : array
Résultat array An array of stream encryption context options

hasName() public méthode

Does this host have a name?
public hasName ( ) : boolean
Résultat boolean

isEncrypted() public méthode

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

monitor() public méthode

public monitor ( ) : array
Résultat array

setCrypto() public méthode

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