MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / get

Method get

tools/python-3.11.9-amd64/Lib/email/message.py:490–500  ·  view source on GitHub ↗

Get a header value. Like __getitem__() but return failobj instead of None when the field is missing.

(self, name, failobj=None)

Source from the content-addressed store, hash-verified

488 for k, v in self._headers]
489
490 def get(self, name, failobj=None):
491 """Get a header value.
492
493 Like __getitem__() but return failobj instead of None when the field
494 is missing.
495 """
496 name = name.lower()
497 for k, v in self._headers:
498 if k.lower() == name:
499 return self.policy.header_fetch_parse(k, v)
500 return failobj
501
502 #
503 # "Internal" methods (public API, but only intended for use by a parser

Callers 15

get_payloadMethod · 0.95
__getitem__Method · 0.95
get_content_typeMethod · 0.95
_get_params_preserveMethod · 0.95
set_paramMethod · 0.95
del_paramMethod · 0.95
search_functionFunction · 0.45
_parsegenMethod · 0.45
__init__Method · 0.45
__getitem__Method · 0.45
is_attachmentMethod · 0.45

Calls 2

lowerMethod · 0.45
header_fetch_parseMethod · 0.45

Tested by

no test coverage detected