DX object to manage htmx headers

Created on 10 May 2025, 5 days ago

Problem/Motivation

HTMX supports 11 custom response headers.

Proposed resolution

Rather than expecting Drupal developers to learn all the names and data requirements of all those headers, create a class with methods to abstract the details of these headers. These methods would both document and collect the necessary data.

Remaining tasks

A developer could use this object converted to an array and attach the headers to a response. The primary use of this object is to manage this data composed into an Htmx object that will be keyed to a render array property and processed in the rendering pipeline. This object will be created in a later issue.

User interface changes

None

Introduced terminology

None

API changes

HtmxHeaderInterface declares the public interface of this object.

Data model changes

None.

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

render system

Created by

πŸ‡ΊπŸ‡ΈUnited States fathershawn New York

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024