What does this program print?

from HTTPX
HTTPX 0.28.1 / Python 3.14 beginner 2 min

What does this program print?

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"])
Open in playground
Report an error