Skip to content

Commit 15d3b9f

Browse files
committed
docs(utils): add docs comment
1 parent c8a343d commit 15d3b9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33

44
import { RepresentationHeader } from "./deps.ts";
55

6+
// TODO(miayuci): add strict parsing.
7+
68
const ReNoTransform = /(?:^|,)\s*?no-transform\s*?(?:,|$)/;
79

810
export function isNoTransform(input: string): boolean {
911
return ReNoTransform.test(input);
1012
}
1113

14+
/** Return new `Response` if the response include `Content-Length` header and readable. */
1215
export async function reCalcContentLength(
1316
response: Response,
1417
): Promise<Response> {

0 commit comments

Comments
 (0)