Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/s3rver

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/s3rver

TypeScript definitions for s3rver

  • 3.7.4
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/s3rver

Summary

This package contains type definitions for s3rver (https://github.com/jamhall/s3rver).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/s3rver.

index.d.ts

/// <reference types="node" />

import { IncomingMessage, ServerResponse } from "http";
import { Http2ServerRequest, Http2ServerResponse } from "http2";
import { AddressInfo } from "net";

declare class S3rver {
    constructor(options: S3rverOptions);
    run(): Promise<AddressInfo>;
    run(callback: (error: Error | null, address: AddressInfo) => void): this;
    close(): Promise<void>;
    close(callback: (error?: Error) => void): this;
    callback(): (req: IncomingMessage | Http2ServerRequest, res: ServerResponse | Http2ServerResponse) => void;
    getMiddleware(): (req: IncomingMessage | Http2ServerRequest, res: ServerResponse | Http2ServerResponse) => void;
    configureBuckets(): Promise<void>;
    reset(): void;
}

interface S3rverOptions {
    address?: string | undefined;
    port?: number | undefined;
    key?: string | Buffer | undefined;
    cert?: string | Buffer | undefined;
    silent?: boolean | undefined;
    serviceEndpoint?: string | undefined;
    directory?: string | undefined;
    resetOnClose?: boolean | undefined;
    allowMismatchedSignatures?: boolean | undefined;
    vhostBuckets?: boolean | undefined;
    configureBuckets?: readonly S3rverBucketConfig[] | undefined;
}

interface S3rverBucketConfig {
    name: string;
    configs: ReadonlyArray<string | Buffer>;
}

export = S3rver;

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: @types/node

Credits

These definitions were written by David Broder-Rodgers, F. Eugene Aumson, and Trygve Aaberge.

FAQs

Package last updated on 21 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc