offset (uint) passed to onWritable callback

This commit is contained in:
Kyle McCarthy 2019-03-04 20:43:43 -06:00
parent ba8deb5272
commit 27517bfe77

2
docs/index.d.ts vendored
View File

@ -61,7 +61,7 @@ interface HttpResponse {
* You MUST return true for success, false for failure.
* Writing nothing is always success, so by default you must return true.
*/
onWritable(handler: (res: HttpResponse) => boolean) : HttpResponse;
onWritable(handler: (offset: number) => boolean) : HttpResponse;
/** Every HttpResponse MUST have an attached abort handler IF you do not respond
* to it immediately inside of the callback. Returning from an Http request handler