Installation
npm install --save @types/koa-sslify
Summary
This package contains type definitions for koa-sslify (https://github.com/turboMaCk/koa-sslify#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-sslify.
import koa = require("koa");
export interface Options {
resolver?: ((ctx: koa.Context) => boolean) | undefined;
hostname?: string | undefined;
port?: number | undefined;
skipDefaultPort?: boolean | undefined;
ignoreUrl?: boolean | undefined;
temporary?: boolean | undefined;
redirectMethods?: string[] | undefined;
disallowStatus?: number | undefined;
}
export function httpsResolver(ctx: koa.Context): boolean;
export function xForwardedProtoResolver(ctx: koa.Context): boolean;
export function azureResolver(ctx: koa.Context): boolean;
export function customProtoHeaderResolver(header: string): (ctx: koa.Context) => boolean;
export function forwardedResolver(ctx: koa.Context): boolean;
export default function factory(options?: Options): koa.Middleware;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/koa
Credits
These definitions were written by Matthew Bull, and Mihkel Sokk.