OpenSwoole\Core\Psr\Uri->withPort

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->withPort()

Parameters

port

The port to use with the new instance.

Return

Description

Set the port of the URI.

Last updated on February 28, 2026