Skip to content

Commit

Permalink
feat: Proxy support
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco committed Sep 24, 2024
1 parent 9cfb45e commit 25fdb67
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion storage3/_sync/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import annotations

from typing import Optional

from storage3.constants import DEFAULT_TIMEOUT
Expand Down Expand Up @@ -32,7 +33,12 @@ def __init__(
super().__init__(self.session)

def _create_session(
self, base_url: str, headers: dict[str, str], timeout: int, verify: bool = True, proxy: Optional[str] = None,
self,
base_url: str,
headers: dict[str, str],
timeout: int,
verify: bool = True,
proxy: Optional[str] = None,
) -> SyncClient:
return SyncClient(
base_url=base_url,
Expand Down

0 comments on commit 25fdb67

Please sign in to comment.