这段程序会输出什么?
Python
import httpx
def app(request):
return httpx.Response(200, json={"url": str(request.url)})
with httpx.Client(
base_url="https://api.test/v1/",
params={"locale": "en"},
transport=httpx.MockTransport(app),
) as client:
response = client.get("orders", params={"page": 2})
print(response.json()["url"])