Aerys\VhostContainer::selectHost PHP Метод

selectHost() публичный Метод

Select a virtual host match for the specified request according to RFC 7230 criteria
public selectHost ( InternalRequest $ireq ) : Vhost | null
$ireq InternalRequest
Результат Vhost | null Returns a Vhost object and boolean TRUE if a valid host selected, FALSE otherwise
    public function selectHost(InternalRequest $ireq)
    {
        if (isset($ireq->uriHost)) {
            return $this->selectHostByAuthority($ireq);
        } else {
            return null;
        }
        // If null is returned a stream must return 400 for HTTP/1.1 requests and use the default
        // host for HTTP/1.0 requests.
    }