Make sure the middleware is enabled.

MIDDLEWARE = [
    ...
    "djxi.middleware.DjxiHeadersMiddleware",
    ...
]

Access the htmx context to access the Request Headers and use the set-methods on the response.htmx to change the Response Headers for HTMX.