qqq
This commit is contained in:
@@ -247,6 +247,16 @@ class ConstrictRequest extends Message implements RequestInterface, ServerReques
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @return string|int|float|null
|
||||
*/
|
||||
public function getServerParam(string $key): string|int|float|null
|
||||
{
|
||||
return $this->serverParams[$key] ?? null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return an instance with the specified cookies.
|
||||
*
|
||||
|
||||
@@ -99,6 +99,16 @@ class Request implements ServerRequestInterface
|
||||
return $this->__call__(__FUNCTION__);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @return string|int|float|null
|
||||
*/
|
||||
public function getServerParam(string $key): string|int|float|null
|
||||
{
|
||||
return $this->__call__(__FUNCTION__)($key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an instance with the specified HTTP protocol version.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user