hunk.code_window: def emit_endpoint_deprecation_notice(
       handler: tornado.web.RequestHandler, new_path: str
   ) -> None:
       """
       Emits the warning about deprecation of HTTP endpoint both in the HTTP header
       and in the application logs.
       """
  
hunk.labels: keep keep keep keep keep replace replace keep
hunk.after_edit:     Emits the warning about deprecation of HTTP endpoint in the HTTP header.
  
hunk.file_path: lib/streamlit/web/server/server_util.py
hunk.type: replace
file: {
    "compilerOptions": {
      "allowJs": true,
      "allowSyntheticDefaultImports": true,
      "baseUrl": ".",
      "esModuleInterop": true,
      "experimentalDecorators": true,
      "forceConsistentCasingInFileNames": true,
      "isolatedModules": true,
      "jsx": "react-jsx",
      "lib": ["dom", "dom.iterable", "esnext"],
      "module": "esnext",
      "moduleResolution": "node",
      "noEmit": true,
      "noFallthroughCasesInSwitch": true,
      "resolveJsonModule": true,
      "skipLibCheck": true,
      "strict": true,
      "target": "es5"
    },
    "include": ["src"]
  }
  