Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BodyLengthCalculator

public

A function that, given a request body, determines the length of the body. This is used to determine the Content-Length that should be sent with a request.

example

A function that reads a file stream and calculates the size of the file.

Hierarchy

  • BodyLengthCalculator

Callable

  • __call(body: any): number | undefined
  • public

    A function that, given a request body, determines the length of the body. This is used to determine the Content-Length that should be sent with a request.

    example

    A function that reads a file stream and calculates the size of the file.

    Parameters

    • body: any

    Returns number | undefined