版博士V2.0程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

18 行
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;