Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oak/headers.ts>toParamRegExp

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function toParamRegExp
import { toParamRegExp } from "https://deno.land/x/oak@v12.1.0/headers.ts";

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
optional
flags: string

Returns

RegExp