Documentation

Std.Internal.Http.Data.Body.Length

Body.Length #

This module defines the Length type, that represents the Content-Length or Transfer-Encoding of an HTTP request or response.

Size of the body of a response or request.

  • chunked : Length

    Indicates that the HTTP message body uses chunked transfer encoding.

  • fixed (n : Nat) : Length

    Indicates that the HTTP message body has a fixed, known length, as specified by the Content-Length header.

Instances For
    @[implicit_reducible]
    @[implicit_reducible]
    @[inline]

    Checks if the Length is chunked.

    Instances For
      @[inline]

      Checks if the Length is a fixed size.

      Instances For