diff --git a/index.d.ts b/index.d.ts index da7d0ab4..94e64a16 100644 --- a/index.d.ts +++ b/index.d.ts @@ -140,6 +140,8 @@ export interface HttpResponse { write(chunk: RecognizedString) : boolean; /** Ends this response by copying the contents of body. */ end(body?: RecognizedString, closeConnection?: boolean) : HttpResponse; + /** Ends this response without a body. */ + endWithoutBody(reportedContentLength?: number, 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 97a8043b..8f90837e 100644 --- a/source_commit +++ b/source_commit @@ -1 +1 @@ -4774d9242479dbdf0d25c93c4c2d6d5e71a04dc7 +875f16e1fa8483f1cbe6e50fdb25efe4fc383731