hunk.code_window:         self.assertIn("Set-Cookie", response.headers)
       def test_health_deprecated(self):
           with self.assertLogs("streamlit.web.server.server_util") as logs:
               response = self.fetch("/healthz")
           self.assertEqual(
               logs.records[0].getMessage(),
               "Endpoint '/healthz' is deprecated. Please use '/_stcore/health' instead.",
           )
           self.assertEqual(
               response.headers["link"],
               f'<http://127.0.0.1:{self.get_http_port()}/_stcore/health>; rel="alternate"',
           )
           self.assertEqual(response.headers["deprecation"], "True")
  
hunk.labels: keep keep keep replace replace replace replace replace replace keep keep keep keep keep
hunk.after_edit:         response = self.fetch("/healthz")
  
hunk.file_path: lib/tests/streamlit/web/server/routes_test.py
hunk.type: replace
file: /// <reference types="node" />
  import { DataType } from "../../type";
  import { Duplex, DuplexOptions } from "stream";
  import { AsyncByteStream } from "../../io/stream";
  import { RecordBatchWriter } from "../../ipc/writer";
  /** @ignore */
  export declare function recordBatchWriterThroughNodeStream<
    T extends {
      [key: string]: DataType;
    } = any
  >(
    this: typeof RecordBatchWriter,
    options?: DuplexOptions & {
      autoDestroy: boolean;
    }
  ): RecordBatchWriterDuplex<T>;
  /** @ignore */
  declare type CB = (error?: Error | null | undefined) => void;
  /** @ignore */
  declare class RecordBatchWriterDuplex<
    T extends {
      [key: string]: DataType;
    } = any
  > extends Duplex {
    private _pulling;
    private _reader;
    private _writer;
    constructor(writer: RecordBatchWriter<T>, options?: DuplexOptions);
    _final(cb?: CB): void;
    _write(x: any, _: string, cb: CB): boolean;
    _read(size: number): void;
    _destroy(err: Error | null, cb: (error: Error | null) => void): void;
    _pull(size: number, reader: AsyncByteStream): Promise<boolean>;
  }
  export {};
  