MCPcopy
hub / github.com/encode/uvicorn / get_path_with_query_string

Function get_path_with_query_string

uvicorn/protocols/utils.py:58–62  ·  view source on GitHub ↗
(scope: WWWScope)

Source from the content-addressed store, hash-verified

56
57
58def get_path_with_query_string(scope: WWWScope) -> str:
59 path_with_query_string = urllib.parse.quote(scope["path"])
60 if scope["query_string"]:
61 path_with_query_string = "{}?{}".format(path_with_query_string, scope["query_string"].decode("ascii"))
62 return path_with_query_string

Callers 5

sendMethod · 0.90
sendMethod · 0.90
sendMethod · 0.90
sendMethod · 0.90
asgi_sendMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected