mirror of https://github.com/nucypher/nucypher.git
Add update_header method
parent
3ac60f35cd
commit
df2908817e
|
@ -56,3 +56,11 @@ class Header(object):
|
|||
f.write(msgpack.dumps(self.header))
|
||||
except ValueError as e:
|
||||
raise e
|
||||
|
||||
def update_header(self, header={}):
|
||||
"""
|
||||
Updates the self.header dict with the dict in header.
|
||||
|
||||
:param dict header: Values to use in the dict.update call
|
||||
"""
|
||||
self.header.update(header)
|
||||
|
|
Loading…
Reference in New Issue