UNPKG

@fly/cdn

Version:
27 lines (26 loc) 708 B
/** * @module Backends */ import { ProxyFunction } from "../proxy"; /** * Proxy options for generic http/https backends * @hidden * See {@link Backends/backend} */ export interface OriginOptions { origin: string | URL; forwardHostHeader?: boolean; headers?: { [name: string]: string | boolean | undefined; }; } /** * Creates a fetch-like proxy function for making requests to http/https origins * @hidden */ export declare function origin(options: OriginOptions | string | URL): ProxyFunction<OriginOptions>; export declare namespace origin { var normalizeOptions: typeof _normalizeOptions; } declare function _normalizeOptions(input: unknown): OriginOptions; export {};