modify
This commit is contained in:
@@ -13,7 +13,7 @@ namespace HttpServer\Http;
|
||||
* Class HttpHeaders
|
||||
* @package Snowflake\Snowflake\Http
|
||||
*/
|
||||
class HttpHeaders
|
||||
trait HttpHeaders
|
||||
{
|
||||
|
||||
private array $_headers = [];
|
||||
@@ -46,17 +46,6 @@ class HttpHeaders
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param null $default
|
||||
* @return mixed
|
||||
*/
|
||||
public function get($name, $default = null): mixed
|
||||
{
|
||||
return $this->_headers[$name] ?? $default;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user