diff --git a/index.d.ts b/index.d.ts index fc3f3938..46b64d0a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -146,7 +146,7 @@ export interface HttpResponse { /** Enters or continues chunked encoding mode. Writes part of the response. End with zero length write. */ write(chunk: RecognizedString) : HttpResponse; /** Ends this response by copying the contents of body. */ - end(body?: RecognizedString) : HttpResponse; + end(body?: RecognizedString, closeConnection?: boolean) : HttpResponse; /** Ends this response, or tries to, by streaming appropriately sized chunks of body. Use in conjunction with onWritable. Returns tuple [ok, hasResponded].*/ tryEnd(fullBodyOrChunk: RecognizedString, totalSize: number) : [boolean, boolean]; diff --git a/source_commit b/source_commit index ff35d6b8..4529b8a8 100644 --- a/source_commit +++ b/source_commit @@ -1 +1 @@ -d2d70bd35fa599db460d2b90628ca65e5875ec8b +8f5383157d8ba3fb1e7a5caacca965155fef8338