LLMSdocs
English

Formats and HTTP

JSON as a publishing format, security.txt, and the canonical and alternate links that tie a page to its other versions.

3 pages

Pages in this section

  1. Publishing JSON files: media type, encoding and parsing

    The rules a published JSON file has to follow under RFC 8259, how to serve it over HTTP, and how to write, read, format and validate it with Python's json module without producing output that other parsers reject.

    Type: IntermediateVersionRFC 8259

  2. security.txt: publishing a security contact

    The security.txt format defined in RFC 9116: where the file must be served, the two required fields Contact and Expires, the optional fields, signing, and the scope of a single file.

    Type: ReferenceVersionRFC 9116

  3. Canonical and alternate links

    A canonical link names the preferred URL when the same content is reachable at several addresses; alternate links point to translations and to the same page in other formats, such as JSON or Markdown. Both can be written in the HTML head or sent as HTTP Link headers.

    Type: Intermediate