Skip to content

Commit 38894a3

Browse files
Merge pull request #114 from stealthrocket/remove-httpx-dependency
remove httpx dependency from dispatch.fastapi module
2 parents a6aa521 + 9fee7a3 commit 38894a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dispatch/fastapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def read_root():
2121
import logging
2222
import os
2323
from datetime import timedelta
24+
from urllib.parse import urlparse
2425

2526
import fastapi
2627
import fastapi.responses
2728
from http_message_signatures import InvalidSignature
28-
from httpx import _urlparse
2929

3030
from dispatch.client import Client
3131
from dispatch.function import Registry
@@ -116,7 +116,7 @@ def __init__(
116116

117117
logger.info("configuring Dispatch endpoint %s", endpoint)
118118

119-
parsed_url = _urlparse.urlparse(endpoint)
119+
parsed_url = urlparse(endpoint)
120120
if not parsed_url.netloc or not parsed_url.scheme:
121121
raise ValueError(
122122
f"{endpoint_from} must be a full URL with protocol and domain (e.g., https://example.com)"

0 commit comments

Comments
 (0)