版博士V2.0程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
525 B

  1. import {IncomingMessage} from 'http';
  2. /**
  3. Mimic a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
  4. Makes `toStream` include the properties from `fromStream`.
  5. @param fromStream - The stream to copy the properties from.
  6. @param toStream - The stream to copy the properties to.
  7. @return The same object as `toStream`.
  8. */
  9. declare function mimicResponse<T extends NodeJS.ReadableStream>(
  10. fromStream: IncomingMessage,
  11. toStream: T,
  12. ): IncomingMessage & T;
  13. export = mimicResponse;