Send a resource to the server using PATCH.
(
self,
path,
data="",
content_type="application/octet-stream",
follow=False,
secure=False,
*,
headers=None,
query_params=None,
**extra,
)
| 1630 | return response |
| 1631 | |
| 1632 | async def patch( |
| 1633 | self, |
| 1634 | path, |
| 1635 | data="", |
| 1636 | content_type="application/octet-stream", |
| 1637 | follow=False, |
| 1638 | secure=False, |
| 1639 | *, |
| 1640 | headers=None, |
| 1641 | query_params=None, |
| 1642 | **extra, |
| 1643 | ): |
| 1644 | """Send a resource to the server using PATCH.""" |
| 1645 | self.extra = extra |
| 1646 | self.headers = headers |
| 1647 | response = await super().patch( |
| 1648 | path, |
| 1649 | data=data, |
| 1650 | content_type=content_type, |
| 1651 | secure=secure, |
| 1652 | headers=headers, |
| 1653 | query_params=query_params, |
| 1654 | **extra, |
| 1655 | ) |
| 1656 | if follow: |
| 1657 | response = await self._ahandle_redirects( |
| 1658 | response, |
| 1659 | data=data, |
| 1660 | content_type=content_type, |
| 1661 | headers=headers, |
| 1662 | query_params=query_params, |
| 1663 | **extra, |
| 1664 | ) |
| 1665 | return response |
| 1666 | |
| 1667 | async def delete( |
| 1668 | self, |
nothing calls this directly
no test coverage detected