Skip to main content Link Menu Expand (external link) Document Search Copy Copied

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

Class Uri

PSR-7 URI implementation (https://github.com/Nyholm/psr7/blob/master/src/Uri.php)

Constants

protected SCHEMES = {"http":80,"https":443}

Properties

protected $fragment protected $host protected $path protected $port protected $query protected $queryParams protected $scheme protected $userInfo

Methods

Static method build

public static function build ( string $scheme , string $authority , string $path , string $query , string $fragment ) : string

Method __construct

public function __construct ( string $uri )

Method apply

public function apply ( string $uri ) : static

Method applyParts

public function applyParts ( array<string, string> $parts ) : static

Method filterPath

protected function filterPath ( string $path ) : string

Method filterPort

protected function filterPort ( ?int $port ) : ?int

Method filterQueryAndFragment

protected function filterQueryAndFragment ( string $string ) : string

Method filterSchemeAndHost

protected function filterSchemeAndHost ( string $host ) : string

Method filterUserInfo

protected function filterUserInfo ( string $user , string $password ) : string

Method getAuthority

public function getAuthority ( ) : string

Method getFragment

public function getFragment ( ) : string

Method getHost

public function getHost ( ) : string

Method getPath

public function getPath ( ) : string

Method getPort

public function getPort ( ) : ?int

Method getQuery

public function getQuery ( ) : string

Method getQueryParams

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

Method getScheme

public function getScheme ( ) : string

Method getUserInfo

public function getUserInfo ( ) : string

Method setFragment

public function setFragment ( string $fragment ) : static

Method setHost

public function setHost ( string $host ) : static

Method setPath

public function setPath ( string $path ) : static

Method setPort

public function setPort ( ?int $port ) : static

Method setQuery

public function setQuery ( string $query ) : static

Method setQueryParams

public function setQueryParams ( array $queryParams ) : static

Method setScheme

public function setScheme ( string $scheme ) : static

Method setUserInfo

public function setUserInfo ( string $user , string $password ) : static

Method toString

public function toString ( ) : string

Method withFragment

public function withFragment ( string $fragment ) : static

Method withHost

public function withHost ( string $host ) : static

Method withPath

public function withPath ( string $path ) : static

Method withPort

public function withPort ( int $port ) : static

Method withQuery

public function withQuery ( string $query ) : static

Method withQueryParams

public function withQueryParams ( array $queryParams ) : static

Method withScheme

public function withScheme ( string $scheme ) : static

Method withUserInfo

public function withUserInfo ( string $user , string $password ) : static

Copyright 2022 the Swow contributors