Description
We do not currently have a mechanism for identifying and documenting MediaWiki REST API header parameters. This means that the current documentation is incomplete. Historically, this has resulted in introducing unexpected breaking changes by altering how unknown optional header parameters behave during endpoint rerouting. By introducing a layer of middleware, we can capture, document, and localise these parameters similarly to how we currently handle request and query parameters.