MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / wants_html_response

Function wants_html_response

main.py:668–672  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

666
667
668def wants_html_response(request: Request) -> bool:
669 if request.method not in {"GET", "HEAD"}:
670 return False
671 accept = request.headers.get("accept", "")
672 return not accept or "text/html" in accept or "*/*" in accept
673
674
675async def read_setup_payload(request: Request) -> dict:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected