MCPcopy
hub / github.com/encode/starlette / head

Method head

starlette/testclient.py:516–537  ·  view source on GitHub ↗
(  # type: ignore[override]
        self,
        url: httpx._types.URLTypes,
        *,
        params: httpx._types.QueryParamTypes | None = None,
        headers: httpx._types.HeaderTypes | None = None,
        cookies: httpx._types.CookieTypes | None = None,
        auth: httpx._types.AuthTypes | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
        follow_redirects: bool | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
        timeout: httpx._types.TimeoutTypes | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
        extensions: dict[str, Any] | None = None,
    )

Source from the content-addressed store, hash-verified

514 )
515
516 def head( # type: ignore[override]
517 self,
518 url: httpx._types.URLTypes,
519 *,
520 params: httpx._types.QueryParamTypes | None = None,
521 headers: httpx._types.HeaderTypes | None = None,
522 cookies: httpx._types.CookieTypes | None = None,
523 auth: httpx._types.AuthTypes | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
524 follow_redirects: bool | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
525 timeout: httpx._types.TimeoutTypes | httpx._client.UseClientDefault = httpx._client.USE_CLIENT_DEFAULT,
526 extensions: dict[str, Any] | None = None,
527 ) -> httpx.Response:
528 return super().head(
529 url,
530 params=params,
531 headers=headers,
532 cookies=cookies,
533 auth=auth,
534 follow_redirects=follow_redirects,
535 timeout=timeout,
536 extensions=extensions,
537 )
538
539 def post( # type: ignore[override]
540 self,

Calls

no outgoing calls

Tested by

no test coverage detected