This commit is contained in:
as2252258@163.com
2021-08-06 00:50:25 +08:00
parent 7e84d06c57
commit d8cec79b3e
4 changed files with 13 additions and 37 deletions
+1 -12
View File
@@ -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
*/