Requests_IRI::get_iauthority()
最后更新于:2021-11-26 03:57:56
Requests_IRI::get_iauthority()Get the complete iauthority
响应
(string|null)
源文件
文件: gc-includes/Requests/IRI.php
protected function get_iauthority() {
if ($this->iuserinfo === null && $this->ihost === null && $this->port === null) {
return null;
}
$iauthority = '';
if ($this->iuserinfo !== null) {
$iauthority .= $this->iuserinfo . '@';
}
if ($this->ihost !== null) {
$iauthority .= $this->ihost;
}
if ($this->port !== null) {
$iauthority .= ':' . $this->port;
}
return $iauthority;
}