def pop_header(self, hkey, ignore_error=False):
<EOL>if type(hkey) is not str:<EOL><INDENT>try:    <EOL><INDENT>return self.headers.pop(self.hkeys.pop(hkey))<EOL><DEDENT>except: <EOL><INDENT>if not ignore_error:<EOL><INDENT>print("<STR_LIT>"+str(hkey))<EOL><DEDENT>return None<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>hkey = self.hkeys.index(hkey)<EOL>return self.headers.pop(self.hkeys.pop(hkey))<EOL><DEDENT>except:<EOL><INDENT>if not ignore_error:<EOL><INDENT>print("<STR_LIT>"+str(hkey))<EOL><DEDENT>return<EOL><DEDENT><DEDENT>
This will remove and return the specified header value.

Parameters
----------
hkey
    Header key you wish to pop. 
    You can specify either a key string or an index.
ignore_error=False
    Whether to quietly ignore any errors (i.e., hkey not found).