@@ -202,31 +202,6 @@ class HttpClient(_HttpClientBase, ABC):
202202 Extend this class to create a custom synchronous HTTP client. Override the `call` method
203203 with your implementation. Helper methods from the base class are available for request
204204 preparation, URL building, and parameter parsing.
205-
206- Example::
207-
208- from apify_client import ApifyClient, HttpClient, HttpResponse
209-
210- class MyHttpClient(HttpClient):
211- def __init__(self):
212- super().__init__()
213-
214- def call(
215- self,
216- *,
217- method: str,
218- url: str,
219- headers: dict[str, str] | None = None,
220- params: dict[str, Any] | None = None,
221- data: str | bytes | bytearray | None = None,
222- json: Any = None,
223- stream: bool | None = None,
224- timeout: timedelta | None = None,
225- ) -> HttpResponse:
226- # Your custom implementation here
227- ...
228-
229- client = ApifyClient(token="...", http_client=MyHttpClient())
230205 """
231206
232207 @abstractmethod
@@ -269,31 +244,6 @@ class HttpClientAsync(_HttpClientBase, ABC):
269244
270245 Extend this class to create a custom asynchronous HTTP client. See `HttpClient`
271246 for details on the expected behavior.
272-
273- Example::
274-
275- from apify_client import ApifyClientAsync, HttpClientAsync, HttpResponse
276-
277- class MyHttpClientAsync(HttpClientAsync):
278- def __init__(self):
279- super().__init__()
280-
281- async def call(
282- self,
283- *,
284- method: str,
285- url: str,
286- headers: dict[str, str] | None = None,
287- params: dict[str, Any] | None = None,
288- data: str | bytes | bytearray | None = None,
289- json: Any = None,
290- stream: bool | None = None,
291- timeout: timedelta | None = None,
292- ) -> HttpResponse:
293- # Your custom async implementation here
294- ...
295-
296- client = ApifyClientAsync(token="...", http_client=MyHttpClientAsync())
297247 """
298248
299249 @abstractmethod
0 commit comments