Skip to content

Commit

Permalink
docs(utils): add docs comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed Apr 2, 2023
1 parent c8a343d commit 15d3b9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils.ts
Expand Up @@ -3,12 +3,15 @@

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

// TODO(miayuci): add strict parsing.

const ReNoTransform = /(?:^|,)\s*?no-transform\s*?(?:,|$)/;

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

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

0 comments on commit 15d3b9f

Please sign in to comment.