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: Thu, 08 Jul 2021 16:23:25 GMT
- Dependencies: @types/koa
- Global values: none
Credits
These definitions were written by Matthew Bull, Mihkel Sokk, and wujingtao.