Skip to main content
Module

x/oak_commons/header_utils.ts>toParamRegExp

A set of APIs for handling HTTP and HTTPS requests with Deno 🐿️ 🦕
Very Popular
Go to Latest
function toParamRegExp
import { toParamRegExp } from "https://deno.land/x/oak_commons@0.13.0/header_utils.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