MCPcopy
hub / github.com/django/django / head

Method head

django/test/client.py:1534–1560  ·  view source on GitHub ↗

Request a response from the server using HEAD.

(
        self,
        path,
        data=None,
        follow=False,
        secure=False,
        *,
        headers=None,
        query_params=None,
        **extra,
    )

Source from the content-addressed store, hash-verified

1532 return response
1533
1534 async def head(
1535 self,
1536 path,
1537 data=None,
1538 follow=False,
1539 secure=False,
1540 *,
1541 headers=None,
1542 query_params=None,
1543 **extra,
1544 ):
1545 """Request a response from the server using HEAD."""
1546 self.extra = extra
1547 self.headers = headers
1548 response = await super().head(
1549 path,
1550 data=data,
1551 secure=secure,
1552 headers=headers,
1553 query_params=query_params,
1554 **extra,
1555 )
1556 if follow:
1557 response = await self._ahandle_redirects(
1558 response, data=data, headers=headers, query_params=query_params, **extra
1559 )
1560 return response
1561
1562 async def options(
1563 self,

Callers

nothing calls this directly

Calls 2

_ahandle_redirectsMethod · 0.95
headMethod · 0.45

Tested by

no test coverage detected