<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_headers(self, req, name, field):
 """Pull a header value from the request."""

        # Use req.get_headers rather than req.headers for performance
        return req.get_header(name, required=False) or core.missing