(scope: WWWScope)
| 56 | |
| 57 | |
| 58 | def 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 |