__contains__ method for Headers class
This commit is contained in:
@@ -33,6 +33,9 @@ class Headers:
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self._d)
|
return str(self._d)
|
||||||
|
|
||||||
|
def __contains__(self, key):
|
||||||
|
return self._d.__contains__(key)
|
||||||
|
|
||||||
|
|
||||||
class Request:
|
class Request:
|
||||||
def __init__(self, method: str, path: str, headers: Headers, body: bytes):
|
def __init__(self, method: str, path: str, headers: Headers, body: bytes):
|
||||||
|
|||||||
Reference in New Issue
Block a user