Aerys\Vhost class Vhost implements Aerys\Monitor

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct(string $name, array $interfaces, callable $application, array $filters, array $monitors = [], Aerys\HttpDriver $driver = null)
No documentation.
Type Parameter Description Default Value
string $name No documentation. none
array $interfaces No documentation. none
callable $application No documentation. none
array $filters No documentation. none
array $monitors No documentation. []
Aerys\HttpDriver $driver No documentation. null
getIds — public function getIds(): array
No documentation.
getInterfaces — public function getInterfaces(): array
No documentation.
getBindableAddresses — public function getBindableAddresses(): array

Retrieve the URIs on which this host should be bound

getName — public function getName(): string

Retrieve the host's name (may be an empty string)

getApplication — public function getApplication(): callable

Retrieve the host's callable application

getPorts — public function getPorts(string $address): array
No documentation.
Type Parameter Description Default Value
string $address No documentation. none
getHttpDriver — public function getHttpDriver()
No documentation.
hasName — public function hasName(): bool

Does this host have a name?

isEncrypted — public function isEncrypted(): bool

Has this host been assigned a TLS encryption context?

setCrypto — public function setCrypto(array $tls): void

Define TLS encryption settings for this host

Type Parameter Description Default Value
array $tls An array mapping TLS stream context values none
getTlsContextArr — public function getTlsContextArr(): array

Retrieve this host's TLS connection context options

getFilters — public function getFilters(): array

Retrieve filters registered for this host

__toString — public function __toString(): string

Returns the host name

__debugInfo — public function __debugInfo(): array

Simplify debug output

monitor — public function monitor(): array
No documentation.