The `withUri` method in the PHP PSR HTTP Message `RequestInterface` allows you to create a new instance of the request with a different URI. It accepts a `Psr\Http\Message\UriInterface` object as an argument and returns a new `RequestInterface` object with the updated URI. This method is useful when you need to make a request to a different URI while keeping the other request parameters intact.
PHP Psr\Http\Message RequestInterface::withUri - 18 examples found. These are the top rated real world PHP examples of Psr\Http\Message\RequestInterface::withUri extracted from open source projects. You can rate examples to help us improve the quality of examples.