Documentation
¶
Overview ¶
Package inertia provides the functionality to use Inertia.js with Gin. https://inertiajs.com
Index ¶
Constants ¶
View Source
const ( // Set to true to indicate this is an Inertia response. X_INERTIA string = "X-Inertia" // Used for external redirects when a 409 Conflict response is returned due to asset version mismatches. Triggers a // full window.location visit. X_INERTIA_LOCATION string = "X-Inertia-Location" // Used for redirects containing URL fragments when a 409 Conflict response is returned. Contains the full redirect // URL including the fragment. Triggers a standard Inertia visit instead of a full page reload. X_INERTIA_REDIRECT string = "X-Inertia-Redirect" // Set to X-Inertia to help browsers correctly differentiate between HTML and JSON responses. // Set to Precognition on all responses when the Precognition middleware is applied. VARY string = "Vary" // Set to true to indicate this is a Precognition validation response. // https://inertiajs.com/docs/v3/the-basics/forms#precognition PRECOGNITION string = "Precognition" // Set to true when validation passes with no errors, combined with a 204 No Content status code. // https://inertiajs.com/docs/v3/the-basics/forms#precognition PRECOGNITION_SUCCESS string = "Precognition-Success" )
Represent the Inertia response headers.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.