OpenSwoole\Core\Psr\Request->withUri

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


Latest version: pecl install openswoole-26.2.0

Declaration

<?php OpenSwoole\Core\Psr\Request->withUri()

Parameters

uri

New request URI to use

preserveHost

Preserve the original state of the Host header

Return

Description

Set the URI instance of the request.

Last updated on February 28, 2026