Configuration interface.

interface Config {
    addCorsEnabledServer(server: CorsServerDescriptor): void;
    addPostProcessor(processor: PostProcessor): void;
    addPreProcessor(processor: PreProcessor): void;
    addProxyRule(rule: ProxyRuleDescriptor): void;
    addTrustedServer(server: TrustedServerDescriptor): void;
    buildProvider(): ExtendedDojoProvider;
    get<Name extends keyof ConfigProperties>(
        name: Name,
    ): ConfigProperties[Name];
    removeCorsEnabledServer(server: CorsServerDescriptor): void;
    removePostProcessor(processor: PostProcessor): void;
    removePreProcessor(processor: PreProcessor): void;
    removeProxyRule(rule: ProxyRuleDescriptor): void;
    removeTrustedServer(server: TrustedServerDescriptor): void;
    reset(): void;
    set<Name extends keyof ConfigProperties>(
        name: Name,
        value: ConfigProperties[Name],
    ): void;
}

Methods

  • Register a post-processor

    Parameters

    Returns void

  • Register a pre-processor

    Parameters

    Returns void

  • Register a proxy rule. If the rule matches, the request will be routed over a proxy.

    Parameters

    Returns void

  • Only for internal usage.

    Returns ExtendedDojoProvider

  • Unregister a post-processor

    Parameters

    Returns void

  • Unregister a pre-processor

    Parameters

    Returns void

  • Reset the configuration to it's defaults. Only intended for tests.

    Returns void