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

Method head

django/test/client.py:1177–1203  ·  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

1175 return response
1176
1177 def head(
1178 self,
1179 path,
1180 data=None,
1181 follow=False,
1182 secure=False,
1183 *,
1184 headers=None,
1185 query_params=None,
1186 **extra,
1187 ):
1188 """Request a response from the server using HEAD."""
1189 self.extra = extra
1190 self.headers = headers
1191 response = super().head(
1192 path,
1193 data=data,
1194 secure=secure,
1195 headers=headers,
1196 query_params=query_params,
1197 **extra,
1198 )
1199 if follow:
1200 response = self._handle_redirects(
1201 response, data=data, headers=headers, query_params=query_params, **extra
1202 )
1203 return response
1204
1205 def options(
1206 self,

Callers 15

headMethod · 0.45
test_learn_cache_keyMethod · 0.45
test_headMethod · 0.45
test_no_headMethod · 0.45
test_xview_funcMethod · 0.45
test_xview_classMethod · 0.45

Calls 1

_handle_redirectsMethod · 0.95

Tested by 15

test_learn_cache_keyMethod · 0.36
test_headMethod · 0.36
test_no_headMethod · 0.36
test_xview_funcMethod · 0.36
test_xview_classMethod · 0.36