Skip to content

Header ​

Solo\Inertia\Header — the header names of the Inertia protocol, for tests and for middleware of your own.

ConstantHeader
INERTIAX-InertiaSent by the client on every Inertia request, and by render() on every page object
VERSIONX-Inertia-VersionThe client's asset version; echoed on a version conflict
LOCATIONX-Inertia-LocationOn a 409: a full page load of this URL
REDIRECTX-Inertia-RedirectOn a 409: an Inertia visit to this URL, fragment included
PARTIAL_COMPONENTX-Inertia-Partial-ComponentThe component a partial reload is for
PARTIAL_DATAX-Inertia-Partial-DataThe paths a partial reload asks for
PARTIAL_EXCEPTX-Inertia-Partial-ExceptThe paths a partial reload leaves out
RESETX-Inertia-ResetProps the client replaces instead of merging into
ERROR_BAGX-Inertia-Error-BagThe error bag a form's errors go under
INFINITE_SCROLL_MERGE_INTENTX-Inertia-Infinite-Scroll-Merge-Intentappend or prepend
EXCEPT_ONCE_PROPSX-Inertia-Except-Once-PropsThe once props the client has
PURPOSEPurposeprefetch on a prefetch request
PRECOGNITIONPrecognitiontrue on a request that only validates, and on its answer
PRECOGNITION_VALIDATE_ONLYPrecognition-Validate-OnlyThe fields a Precognition request validates
PRECOGNITION_SUCCESSPrecognition-Successtrue on the 204 of a valid Precognition request

Comma-separated values may have spaces around the commas.

Released under the MIT License.