This is automatic generated document for things in Swow\Psr7\Message\Request class

Class Request

Constants

protected PRESERVE_HOST = false

Properties

protected $method protected $requestTarget protected $uri

Methods

Method getHostFromUri

protected function getHostFromUri ( ) : string

Method getMethod

public function getMethod ( ) : string

Method getRequestTarget

public function getRequestTarget ( ) : string

Method getStandardHeaders

public function getStandardHeaders ( ) : array<string, array<string>>

Method getUri

public function getUri ( ) : UriInterface

Method setMethod

public function setMethod ( string $method ) : static

Method setRequestTarget

public function setRequestTarget ( string $requestTarget ) : static

Method setUri

public function setUri ( string|UriInterface $uri , ?bool $preserveHost ) : static

Method toString

public function toString ( bool $withoutBody ) : string

Method updateHostFromUri

protected function updateHostFromUri ( ) : void

Method withMethod

public function withMethod ( string $method ) : static

Method withRequestTarget

public function withRequestTarget ( string $requestTarget ) : static

Method withUri

public function withUri ( string|UriInterface $uri , $preserveHost ) : static

Copyright 2022 the Swow contributors