MCPcopy Index your code
hub / github.com/fastapi/fastapi / get_legacy_data

Function get_legacy_data

docs_src/response_directly/tutorial002_py310.py:7–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6@app.get("/legacy/")
7def get_legacy_data():
8 data = """<?xml version="1.0"?>
9 <shampoo>
10 <Header>
11 Apply shampoo here.
12 </Header>
13 <Body>
14 You&#x27;ll have to use soap here.
15 </Body>
16 </shampoo>
17 """
18 return Response(content=data, media_type="application/xml")

Callers

nothing calls this directly

Calls 1

ResponseClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…