Method | 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 |
Method | Description | |
---|---|---|
addInterface ( array $interface ) | ||
hasAlpnSupport ( ) : boolean | ||
normalizeTlsCryptoMethod ( array $tls ) : array | ||
parseNamesFromTlsCertArray ( array $cert ) : array |
public getApplication ( ) : callable | ||
return | callable |
public getBindableAddresses ( ) : array | ||
return | array |
public getFilters ( ) : array | ||
return | array |
public getInterfaces ( ) : array | ||
return | array |
public getTlsContextArr ( ) : array | ||
return | array | An array of stream encryption context options |
public isEncrypted ( ) : boolean | ||
return | boolean | Returns true if a TLS context is assigned, false otherwise |