From ef79409be888ba6cad045cfc0273750abb6f8ca7 Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Wed, 26 Jun 2024 17:41:44 -0300 Subject: [PATCH 1/5] Enable HTTP2 --- supabase_functions/_async/functions_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/supabase_functions/_async/functions_client.py b/supabase_functions/_async/functions_client.py index 6578fd3..8e84acd 100644 --- a/supabase_functions/_async/functions_client.py +++ b/supabase_functions/_async/functions_client.py @@ -18,6 +18,7 @@ def __init__(self, url: str, headers: Dict, verify: bool = True): headers=self.headers, verify=bool(verify), follow_redirects=True, + http2=True, ) async def _request( From ab116ff26128d4fe5f2b3aae19a6f65f8b9777ee Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Wed, 26 Jun 2024 17:41:53 -0300 Subject: [PATCH 2/5] Enable HTTP2 --- supabase_functions/_sync/functions_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/supabase_functions/_sync/functions_client.py b/supabase_functions/_sync/functions_client.py index bb39a6f..d09d66c 100644 --- a/supabase_functions/_sync/functions_client.py +++ b/supabase_functions/_sync/functions_client.py @@ -18,6 +18,7 @@ def __init__(self, url: str, headers: Dict, verify: bool = True): headers=self.headers, verify=bool(verify), follow_redirects=True, + http2=True, ) def _request( From 2a70493728b05d68635f86ae50cb4affab367310 Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Wed, 26 Jun 2024 17:54:47 -0300 Subject: [PATCH 3/5] Enable HTTP2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 50cdd79..278a029 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ repository = "https://github.com/supabase-community/functions-py" [tool.poetry.dependencies] python = "^3.8" -httpx = ">=0.24,<0.28" +httpx = ">=0.24,<0.28; http2" [tool.poetry.group.dev.dependencies] python-semantic-release = ">=8.1.1,<10.0.0" From 6f2881a37ab0e2fb42e38407c598e7c35e91668c Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Wed, 26 Jun 2024 17:58:55 -0300 Subject: [PATCH 4/5] Enable HTTP2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 278a029..47507d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ repository = "https://github.com/supabase-community/functions-py" [tool.poetry.dependencies] python = "^3.8" -httpx = ">=0.24,<0.28; http2" +httpx = {version = ">=0.24,<0.28", extras = ["http2"]} [tool.poetry.group.dev.dependencies] python-semantic-release = ">=8.1.1,<10.0.0" From 50c7290e810b805ed6701ea246b7c7aec8442dfb Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Wed, 26 Jun 2024 18:03:13 -0300 Subject: [PATCH 5/5] Enable HTTP2 --- poetry.lock | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index cdd1dab..ef9b1d3 100644 --- a/poetry.lock +++ b/poetry.lock @@ -408,6 +408,32 @@ files = [ {file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"}, ] +[[package]] +name = "h2" +version = "4.1.0" +description = "HTTP/2 State-Machine based protocol implementation" +optional = false +python-versions = ">=3.6.1" +files = [ + {file = "h2-4.1.0-py3-none-any.whl", hash = "sha256:03a46bcf682256c95b5fd9e9a99c1323584c3eec6440d379b9903d709476bc6d"}, + {file = "h2-4.1.0.tar.gz", hash = "sha256:a83aca08fbe7aacb79fec788c9c0bac936343560ed9ec18b82a13a12c28d2abb"}, +] + +[package.dependencies] +hpack = ">=4.0,<5" +hyperframe = ">=6.0,<7" + +[[package]] +name = "hpack" +version = "4.0.0" +description = "Pure-Python HPACK header compression" +optional = false +python-versions = ">=3.6.1" +files = [ + {file = "hpack-4.0.0-py3-none-any.whl", hash = "sha256:84a076fad3dc9a9f8063ccb8041ef100867b1878b25ef0ee63847a5d53818a6c"}, + {file = "hpack-4.0.0.tar.gz", hash = "sha256:fc41de0c63e687ebffde81187a948221294896f6bdc0ae2312708df339430095"}, +] + [[package]] name = "httpcore" version = "1.0.2" @@ -443,6 +469,7 @@ files = [ [package.dependencies] anyio = "*" certifi = "*" +h2 = {version = ">=3,<5", optional = true, markers = "extra == \"http2\""} httpcore = "==1.*" idna = "*" sniffio = "*" @@ -453,6 +480,17 @@ cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"] http2 = ["h2 (>=3,<5)"] socks = ["socksio (==1.*)"] +[[package]] +name = "hyperframe" +version = "6.0.1" +description = "HTTP/2 framing layer for Python" +optional = false +python-versions = ">=3.6.1" +files = [ + {file = "hyperframe-6.0.1-py3-none-any.whl", hash = "sha256:0ec6bafd80d8ad2195c4f03aacba3a8265e57bc4cff261e802bf39970ed02a15"}, + {file = "hyperframe-6.0.1.tar.gz", hash = "sha256:ae510046231dc8e9ecb1a6586f63d2347bf4c8905914aa84ba585ae85f28a914"}, +] + [[package]] name = "identify" version = "2.5.33" @@ -1324,4 +1362,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "015e7ed967873c27a2a5b882b4da9242622e5df22b35ad20656e1aae3e6c8192" +content-hash = "e943bb7f18b11b76dfda70f47f172372b82954f22a3c908a8344bfdc2573aabf"