MCPcopy Index your code
hub / github.com/microsoft/playwright-python / head

Method head

playwright/_impl/_fetch.py:159–186  ·  view source on GitHub ↗
(
        self,
        url: str,
        params: ParamsType = None,
        headers: Headers = None,
        data: DataType = None,
        form: FormType = None,
        multipart: MultipartType = None,
        timeout: float = None,
        failOnStatusCode: bool = None,
        ignoreHTTPSErrors: bool = None,
        maxRedirects: int = None,
        maxRetries: int = None,
    )

Source from the content-addressed store, hash-verified

157 )
158
159 async def head(
160 self,
161 url: str,
162 params: ParamsType = None,
163 headers: Headers = None,
164 data: DataType = None,
165 form: FormType = None,
166 multipart: MultipartType = None,
167 timeout: float = None,
168 failOnStatusCode: bool = None,
169 ignoreHTTPSErrors: bool = None,
170 maxRedirects: int = None,
171 maxRetries: int = None,
172 ) -> "APIResponse":
173 return await self.fetch(
174 url,
175 method="HEAD",
176 params=params,
177 headers=headers,
178 data=data,
179 form=form,
180 multipart=multipart,
181 timeout=timeout,
182 failOnStatusCode=failOnStatusCode,
183 ignoreHTTPSErrors=ignoreHTTPSErrors,
184 maxRedirects=maxRedirects,
185 maxRetries=maxRetries,
186 )
187
188 async def get(
189 self,

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected