mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
626 B
TypeScript
13 lines
626 B
TypeScript
import http = require('http');
|
|
import BufferStream = require('./index');
|
|
|
|
export = PostBuffer;
|
|
declare class PostBuffer extends BufferStream {
|
|
/** for if you want to get all the post data from a http server request and do some db request before. */
|
|
constructor(req: http.IncomingMessage);
|
|
/** set a callback to get all post data from a http server request */
|
|
onEnd(callback: (data: any) => void): void;
|
|
/** pumps data into another stream to allow incoming streams given options will be passed to Stream.pipe */
|
|
pipe(stream: NodeJS.WritableStream, options?: BufferStream.Opts): NodeJS.ReadableStream;
|
|
}
|