ID EN
Urllib Request

has_header

Python 3.11

Return whether the instance has the named header (checks both regular and unredirected).

Syntax

PYTHON
Request.has_header(header)