@ende/http/unstable-structured-fields

ende add jsr:@ende/http

Version 2026.10.15 on JSR.

Utilities for parsing and serializing RFC 9651 Structured Field Values for HTTP.

Structured Fields provide a standardized way to define HTTP header and trailer field values using common data types (Lists, Dictionaries, Items) with strict parsing and serialization rules.

Exports

  • BareItem — A Bare Item value in a Structured Field.
  • binary — Creates a binary Bare Item.
  • boolean — Creates a boolean Bare Item.
  • date — Creates a date Bare Item.
  • decimal — Creates a decimal Bare Item.
  • Dictionary — A Dictionary Structured Field value.
  • displayString — Creates a display string Bare Item.
  • innerList — Creates an Inner List from Items and optional Parameters.
  • InnerList — An Inner List in a Structured Field.
  • integer — Creates an integer Bare Item.
  • isInnerList — Checks if a list member is an Inner List.
  • isItem — Checks if a list member is an Item (not an Inner List).
  • item — Creates an Item from a Bare Item and optional Parameters.
  • Item — An Item in a Structured Field, consisting of a Bare Item and Parameters.
  • List — A List Structured Field value.
  • Parameters — Parameters attached to an Item or Inner List.
  • parseDictionary — Parses a Dictionary Structured Field value.
  • parseItem — Parses an Item Structured Field value.
  • parseList — Parses a List Structured Field value.
  • serializeDictionary — Serializes a Dictionary to a string.
  • serializeItem — Serializes an Item to a string.
  • serializeList — Serializes a List to a string.
  • string — Creates a string Bare Item.
  • token — Creates a token Bare Item.