Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "http"

Index

Interfaces

Variables

Functions

Variables

Const MergeDeep

MergeDeep: any = require('merge-deep')

Functions

readBody

  • readBody(msg: IncomingMessage): Promise<Buffer>
  • Reads the content of a HTTP request body.

    Parameters

    • msg: IncomingMessage

      The HTTP message with the body.

    Returns Promise<Buffer>

    The promise with the content.

request

  • request(url?: string | Url, opts?: RequestOptions): Promise<IncomingMessage>
  • Starts a HTTP request.

    Parameters

    • Optional url: string | Url

      The URL.

    • Optional opts: RequestOptions

      Additional options for the request.

    Returns Promise<IncomingMessage>

    The promise with the response.

requestInner

  • requestInner(url: string | Url, opts: RequestOptions, redirections: number): Promise<IncomingMessage>
  • Parameters

    Returns Promise<IncomingMessage>

Generated using TypeDoc