Skip to content

Commit

Permalink
recompiled for http2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
arihant2math committed Feb 9, 2023
1 parent 69d4cdc commit 037993f
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
}


Expand Down
1 change: 1 addition & 0 deletions ftc_api/api/awards/get_v2_0_season_awards_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
}


Expand Down
1 change: 1 addition & 0 deletions ftc_api/api/awards/get_v_2_0_season_awards_event_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
"params": params,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
}


Expand Down
1 change: 1 addition & 0 deletions ftc_api/api/awards/get_v_2_0_season_awards_team_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
"params": params,
}

Expand Down
1 change: 1 addition & 0 deletions ftc_api/api/general/get_v2_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
}


Expand Down
1 change: 1 addition & 0 deletions ftc_api/api/leagues/get_v2_0_season_leagues.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
"params": params,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
"params": params,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
"params": params,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
"params": params,
}

Expand Down
1 change: 1 addition & 0 deletions ftc_api/api/season_data/get_v2_0_season.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
}


Expand Down
1 change: 1 addition & 0 deletions ftc_api/api/season_data/get_v2_0_season_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
"params": params,
}

Expand Down
1 change: 1 addition & 0 deletions ftc_api/api/season_data/get_v2_0_season_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),
"http2": client.http2,
"params": params,
}

Expand Down
2 changes: 2 additions & 0 deletions ftc_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Client:
but can be set to False for testing purposes.
raise_on_unexpected_status: Whether or not to raise an errors.UnexpectedStatus if the API returns a
status code that was not documented in the source OpenAPI document.
http2: Whether or not to use http2, enabled by default.
"""

cookies = {}
Expand All @@ -25,6 +26,7 @@ class Client:
raise_on_unexpected_status: bool = False
prefix: str = "Basic"
auth_header_name: str = "Authorization"
http2 = True

def __init__(self, token=None, username="", authorization_key=""):
if token is not None:
Expand Down

0 comments on commit 037993f

Please sign in to comment.