Пример #1
0
 async def put(
     self,
     url: Address,
     plain: OptionalStr = None,
     as_dict: OptionalAnyDict = None,
     **kwargs: Any,
 ) -> Response:
     """See base class."""
     return await safe_response(
         HttpResponse(
             self._session.put(str(url), data=plain, json=as_dict,
                               **kwargs)))
Пример #2
0
 async def delete(self, url: Address, **kwargs: Any) -> Response:
     """See base class."""
     return await safe_response(
         HttpResponse(self._session.delete(str(url), **kwargs)))
Пример #3
0
 async def head(self, url: Address, **kwargs: Any) -> Response:
     """See base class."""
     return await safe_response(
         HttpResponse(self._session.head(await url.as_str(), **kwargs)))