edge-master
Version:
A Micro Framework for Edges
20 lines (19 loc) • 672 B
TypeScript
import { IMatcher } from './types/base';
/**
* pattern ex: '*foo*bar*' for maching 'XXXfooXXbarXX'
*/
export declare const routePattern: (pattern: string) => IMatcher;
export declare const urlStartWith: (urlStartingWith: string) => IMatcher;
export declare const pathStartWith: (urlStartingWith: string) => IMatcher;
/**
* Creates a matcher for a specific HTTP method
*/
export declare const httpMethod: (method: string) => IMatcher;
/**
* Combines multiple matchers with AND logic
*/
export declare const and: (...matchers: IMatcher[]) => IMatcher;
/**
* Combines multiple matchers with OR logic
*/
export declare const or: (...matchers: IMatcher[]) => IMatcher;