OpenSwoole\Core\Psr\Uri->withHost

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.11.1

Declaration

<?php OpenSwoole\Core\Psr\Uri->withHost()

Parameters

host

The hostname to use with the new instance.

Return

Description

Set the hostname of the URI.

Last updated on February 28, 2026