OpenSwoole\Core\Psr\Request->withMethod

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


Latest version: pecl install openswoole-26.11.1

Declaration

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

Parameters

method

Http request method

Return

Description

Set the HTTP method of the request.

Last updated on February 28, 2026