Sha256: 4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f

Contents?: true

Size: 1.54 KB

Versions: 29

Compression:

Stored size: 1.54 KB

Contents

import { Socket } from "net";
import { URL } from "url";
import Connector from "./connector";
import Dispatcher from "./dispatcher";

declare namespace DiagnosticsChannel {
  interface Request {
    origin?: string | URL;
    completed: boolean;
    method?: Dispatcher.HttpMethod;
    path: string;
    headers: any;
  }
  interface Response {
    statusCode: number;
    statusText: string;
    headers: Array<Buffer>;
  }
  type Error = unknown;
  interface ConnectParams {
    host: URL["host"];
    hostname: URL["hostname"];
    protocol: URL["protocol"];
    port: URL["port"];
    servername: string | null;
  }
  type Connector = Connector.connector;
  export interface RequestCreateMessage {
    request: Request;
  }
  export interface RequestBodySentMessage {
    request: Request;
  }
  export interface RequestHeadersMessage {
    request: Request;
    response: Response;
  }
  export interface RequestTrailersMessage {
    request: Request;
    trailers: Array<Buffer>;
  }
  export interface RequestErrorMessage {
    request: Request;
    error: Error;
  }
  export interface ClientSendHeadersMessage {
    request: Request;
    headers: string;
    socket: Socket;
  }
  export interface ClientBeforeConnectMessage {
    connectParams: ConnectParams;
    connector: Connector;
  }
  export interface ClientConnectedMessage {
    socket: Socket;
    connectParams: ConnectParams;
    connector: Connector;
  }
  export interface ClientConnectErrorMessage {
    error: Error;
    socket: Socket;
    connectParams: ConnectParams;
    connector: Connector;
  }
}

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.24 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.18 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.16 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.15 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.14 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.13 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.12 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.11 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.10 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.9 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.8 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts
clapton-0.0.7 lib/clapton/javascripts/node_modules/undici-types/diagnostics-channel.d.ts