RequestPlusInterface.php 1002 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * This file is part of Swow
  4. *
  5. * @link https://github.com/swow/swow
  6. * @contact twosee <twosee@php.net>
  7. *
  8. * For the full copyright and license information,
  9. * please view the LICENSE file that was distributed with this source code
  10. */
  11. declare(strict_types=1);
  12. namespace Swow\Psr7\Message;
  13. use Psr\Http\Message\UriInterface;
  14. interface RequestPlusInterface extends MessagePlusInterface, \Psr\Http\Message\RequestInterface
  15. {
  16. public function getMethod(): string;
  17. public function setMethod(string $method): static;
  18. public function withMethod(mixed $method): static;
  19. public function getUri(): UriInterface;
  20. public function setUri(UriInterface|string $uri, ?bool $preserveHost = null): static;
  21. public function withUri(UriInterface $uri, $preserveHost = null): static;
  22. public function getRequestTarget(): string;
  23. public function setRequestTarget(string $requestTarget): static;
  24. public function withRequestTarget(mixed $requestTarget): static;
  25. }