@types/http-server
TypeScript definitions for http-server
Last updated 9 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/http-server 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/http-server

Summary

This package contains type definitions for http-server (https://github.com/indexzero/http-server#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-server.

index.d.ts

// Type definitions for http-server 0.12
// Project: https://github.com/indexzero/http-server#readme
// Definitions by: York Yao <https://github.com/plantain-00>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as http from "http";
import * as https from "https";
import { HandleFunction } from "connect";

export function createServer(options?: Options): http.Server | https.Server;

export interface Options {
    root?: string | undefined;
    headers?: { [name: string]: string } | undefined;
    cache?: number | undefined;
    showDir?: boolean | "false" | undefined;
    autoIndex?: boolean | "false" | undefined;
    showDotfiles?: boolean | undefined;
    gzip?: boolean | undefined;
    contentType?: string | undefined;
    ext?: boolean | undefined;
    before?: HandleFunction[] | undefined;
    logFn?: ((req: http.IncomingMessage, res: http.ServerResponse, err: Error) => void) | undefined;
    cors?: boolean | undefined;
    corsHeaders?: string | undefined;
    robots?: string | true | undefined;
    proxy?: string | undefined;
    https?: https.ServerOptions | undefined;
    username?: string | undefined;
    password?: string | undefined;
}

Additional Details

  • Last updated: Tue, 06 Jul 2021 21:33:37 GMT
  • Dependencies: @types/connect
  • Global values: none

Credits

These definitions were written by York Yao.

Current Tags

  • 0.12.1                                ...           latest (5 years ago)
  • 0.10.0                                ...           ts2.0 (9 years ago)
  • 0.10.0                                ...           ts2.1 (9 years ago)
  • 0.10.0                                ...           ts2.2 (9 years ago)
  • 0.10.0                                ...           ts2.3 (9 years ago)
  • 0.10.0                                ...           ts2.4 (9 years ago)
  • 0.10.0                                ...           ts2.5 (9 years ago)
  • 0.10.0                                ...           ts2.6 (9 years ago)
  • 0.10.0                                ...           ts2.7 (9 years ago)
  • 0.10.0                                ...           ts2.8 (9 years ago)
  • 0.10.0                                ...           ts2.9 (9 years ago)
  • 0.10.0                                ...           ts3.0 (9 years ago)
  • 0.10.0                                ...           ts3.1 (9 years ago)
  • 0.10.1                                ...           ts3.2 (5 years ago)
  • 0.10.1                                ...           ts3.3 (5 years ago)
  • 0.10.1                                ...           ts3.4 (5 years ago)
  • 0.10.1                                ...           ts3.5 (5 years ago)
  • 0.12.1                                ...           ts3.6 (5 years ago)
  • 0.12.1                                ...           ts3.7 (5 years ago)
  • 0.12.1                                ...           ts3.8 (5 years ago)
  • 0.12.1                                ...           ts3.9 (5 years ago)
  • 0.12.1                                ...           ts4.0 (5 years ago)
  • 0.12.1                                ...           ts4.1 (5 years ago)
  • 0.12.1                                ...           ts4.2 (5 years ago)
  • 0.12.1                                ...           ts4.3 (5 years ago)
  • 0.12.1                                ...           ts4.4 (5 years ago)
  • 0.12.1                                ...           ts4.5 (5 years ago)
  • 0.12.1                                ...           ts4.6 (5 years ago)
  • 0.12.1                                ...           ts4.7 (5 years ago)
  • 0.12.1                                ...           ts4.8 (5 years ago)
  • 0.12.1                                ...           ts4.9 (5 years ago)
  • 0.12.1                                ...           ts5.0 (5 years ago)
  • 0.12.1                                ...           ts5.1 (5 years ago)

4 Versions

  • 0.12.1                                ...           5 years ago
  • 0.12.0                                ...           5 years ago
  • 0.10.1                                ...           5 years ago
  • 0.10.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |