taxum
    Preparing search index...

    Represents the body of an HTTP message, allowing for handling of various body types like streams, strings, buffers, and more.

    Provides utilities for creating a body instance and transforming it into an HTTP response.

    Implements

    Index

    Constructors

    • Parameters

      • stream: Readable
      • OptionalsizeHint: SizeHint
      • OptionalcontentTypeHint: string

      Returns Body

    Properties

    contentTypeHint: null | string
    sizeHint: SizeHint

    Methods

    • Retrieves the readable stream from the inner body if it has not been consumed.

      Ensures that the body is readable before accessing it.

      Returns Readable

      if the body has already been consumed.