x/oak/headers.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function toParamRegExp
import { toParamRegExp } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/headers.ts?s=toParamRegExp";

With a provided attribute pattern, return a RegExp which will match and capture in the first group the value of the attribute from a header value.

Parameters

attributePattern: string[src]
optional
flags: string
[src]