1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[42],{Hdpt:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/releases/inertia-0.2.3",function(){return n("HsAI")}])},HsAI:function(e,t,n){"use strict";n.r(t),n.d(t,"meta",(function(){return u})),n.d(t,"default",(function(){return d}));var a=n("wx14"),s=n("Ff2n"),i=n("q1tI"),r=n.n(i),o=n("7ljp"),c=n("5Yp1"),u=(n("qKvR"),r.a.createElement,{title:"[email protected]"}),b={meta:u},p=c.b;function d(e){var t=e.components,n=Object(s.a)(e,["components"]);return Object(o.b)(p,Object(a.a)({},b,n,{components:t,mdxType:"MDXLayout"}),Object(o.b)("h1",null,"[email protected]"),Object(o.b)("div",{className:"-mt-8 mb-12 text-base font-medium text-gray-600"},"Published on September 8, 2020"),Object(o.b)("p",null,"This release adds the ability to define custom headers on Inertia requests, thanks to the work of ",Object(o.b)("a",Object(a.a)({parentName:"p"},{href:"https://github.com/claudiodekker"}),"@claudiodekker")," (",Object(o.b)("a",Object(a.a)({parentName:"p"},{href:"https://github.com/inertiajs/inertia/pull/202"}),"#202"),")."),Object(o.b)("p",null,"Here is how this is done:"),Object(o.b)("pre",null,Object(o.b)("code",Object(a.a)({parentName:"pre"},{className:"language-js"}),"this.$inertia.visit('/users', {\n headers: {\n 'Custom-Header': 'value',\n },\n})\n\nthis.$inertia.post('/users', this.form, {\n headers: {\n 'Custom-Header': 'value',\n },\n})\n")))}d.isMDXComponent=!0}},[["Hdpt",0,2,5,1,3,4]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.