Skip to main content
Module

x/http_fns/sub_pattern.ts>mergePatternResult

A bunch of functions for building HTTP servers
Go to Latest
function mergePatternResult
import { mergePatternResult } from "https://deno.land/x/http_fns@v0.0.27/sub_pattern.ts";

Create a handler that merges two URLPatternResults from the args, and calls the given handle with the merged result as a single arg.

Type Parameters

A extends unknown[]

Parameters

handler: (
request: Request,
...args: A,
) => Awaitable<Response | null>