ID EN
Urllib Request

get_header

Python 3.11

Return the value of the given header. If the header is not present, return the default value.

Syntax

PYTHON
Request.get_header(header_name, default=None)