UNPKG

@stacksjs/rpx

Version:

A modern and smart reverse proxy.

13 lines (12 loc) 359 B
export declare function createOriginGuard(options: OriginGuardOptions): OriginGuard; export declare interface OriginGuardOptions { header: string value: string hosts: string[] exemptPaths?: string[] forbiddenMessage?: string } export declare interface OriginGuard { (req: Request): Response | undefined protects: (hostname: string) => boolean }