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

Function get_query

docs_src/background_tasks/tutorial002_an_py310.py:13–17  ·  view source on GitHub ↗
(background_tasks: BackgroundTasks, q: str | None = None)

Source from the content-addressed store, hash-verified

11
12
13def get_query(background_tasks: BackgroundTasks, q: str | None = None):
14 if q:
15 message = f"found query: {q}\n"
16 background_tasks.add_task(write_log, message)
17 return q
18
19
20@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…