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

Function get_query

docs_src/background_tasks/tutorial002_py310.py:11–15  ·  view source on GitHub ↗
(background_tasks: BackgroundTasks, q: str | None = None)

Source from the content-addressed store, hash-verified

9
10
11def get_query(background_tasks: BackgroundTasks, q: str | None = None):
12 if q:
13 message = f"found query: {q}\n"
14 background_tasks.add_task(write_log, message)
15 return q
16
17
18@app.post("/send-notification/{email}")

Callers

nothing calls this directly

Calls 1

add_taskMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…