문서 보기역링크PDF로 내보내기맨 위로 이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. # aiohttp <code> @router.get("/") async def products_get(request: Request): url = "https://YOUR_DOMAIN/products" async with aiohttp.ClientSession() as client: resp = await client.get(url) text = await resp.text() return Response(text, status_code=resp.status, headers=resp.headers) @router.get("/{product_id}") async def product_get(product_id: int, request: Request): url = f"https://YOUR_DOMAIN/products/{product_id}" resp = await aiohttp.ClientSession().get(url) text = await resp.text() return Response(text, status_code=resp.status, headers=resp.headers) </code> open/aiohttp.txt 마지막으로 수정됨: 2021/12/21 06:07저자 127.0.0.1