[{"data":1,"prerenderedAt":1094},["ShallowReactive",2],{"navigation":3,"-guide-basics-response":193,"-guide-basics-response-surround":1089},[4,91,138,170,177],{"title":5,"path":6,"stem":7,"children":8,"icon":90},"Guide","/guide","1.guide/0.index",[9,12,53,69],{"title":10,"path":6,"stem":7,"icon":11},"Getting Started","pixel:play",{"title":5,"icon":13,"path":14,"stem":15,"children":16,"page":52},"ph:book-open-duotone","/guide/basics","1.guide/1.basics",[17,22,27,32,37,42,47],{"title":18,"path":19,"stem":20,"icon":21},"Request Lifecycle","/guide/basics/lifecycle","1.guide/1.basics/1.lifecycle","icon-park-outline:handle-round",{"title":23,"path":24,"stem":25,"icon":26},"Routing","/guide/basics/routing","1.guide/1.basics/2.routing","solar:routing-bold",{"title":28,"path":29,"stem":30,"icon":31},"Middleware","/guide/basics/middleware","1.guide/1.basics/3.middleware","mdi:middleware-outline",{"title":33,"path":34,"stem":35,"icon":36},"Event Handlers","/guide/basics/handler","1.guide/1.basics/4.handler","mdi:function",{"title":38,"path":39,"stem":40,"icon":41},"Sending Response","/guide/basics/response","1.guide/1.basics/5.response","tabler:json",{"title":43,"path":44,"stem":45,"icon":46},"Error Handling","/guide/basics/error","1.guide/1.basics/6.error","tabler:error-404",{"title":48,"path":49,"stem":50,"icon":51},"Nested Apps","/guide/basics/nested-apps","1.guide/1.basics/7.nested-apps","material-symbols-light:layers-outline",false,{"title":54,"icon":55,"path":56,"stem":57,"children":58,"page":52},"API","material-symbols-light:api-rounded","/guide/api","1.guide/900.api",[59,64],{"title":60,"path":61,"stem":62,"icon":63},"H3","/guide/api/h3","1.guide/900.api/1.h3","material-symbols:bolt-rounded",{"title":65,"path":66,"stem":67,"icon":68},"H3Event","/guide/api/h3event","1.guide/900.api/2.h3event","material-symbols:data-object-rounded",{"title":70,"icon":71,"path":72,"stem":73,"children":74,"page":52},"Advanced","hugeicons:more-01","/guide/advanced","1.guide/901.advanced",[75,80,85],{"title":76,"path":77,"stem":78,"icon":79},"Plugins","/guide/advanced/plugins","1.guide/901.advanced/1.plugins","clarity:plugin-line",{"title":81,"path":82,"stem":83,"icon":84},"WebSockets","/guide/advanced/websocket","1.guide/901.advanced/2.websocket","hugeicons:live-streaming-02",{"title":86,"path":87,"stem":88,"icon":89},"Nightly Builds","/guide/advanced/nightly","1.guide/901.advanced/9.nightly","game-icons:barn-owl","i-ph:book-open-duotone",{"title":92,"path":93,"stem":94,"children":95,"icon":97},"Utils","/utils","2.utils/0.index",[96,98,103,108,113,118,123,128,133],{"title":92,"path":93,"stem":94,"icon":97},"ph:function-bold",{"title":99,"path":100,"stem":101,"icon":102},"Request","/utils/request","2.utils/1.request","material-symbols-light:input",{"title":104,"path":105,"stem":106,"icon":107},"Response","/utils/response","2.utils/2.response","material-symbols-light:output",{"title":109,"path":110,"stem":111,"icon":112},"Cookie","/utils/cookie","2.utils/3.cookie","material-symbols:cookie-outline",{"title":114,"path":115,"stem":116,"icon":117},"Security","/utils/security","2.utils/4.security","wpf:key-security",{"title":119,"path":120,"stem":121,"icon":122},"Proxy","/utils/proxy","2.utils/5.proxy","arcticons:super-proxy",{"title":124,"path":125,"stem":126,"icon":127},"MCP","/utils/mcp","2.utils/6.mcp","material-symbols:swap-calls",{"title":129,"path":130,"stem":131,"icon":132},"More utils","/utils/more","2.utils/9.more","mingcute:plus-line",{"title":134,"path":135,"stem":136,"icon":137},"Community","/utils/community","2.utils/99.community","lets-icons:external",{"title":139,"path":140,"stem":141,"children":142,"icon":144},"Examples","/examples","4.examples/0.index",[143,145,150,154,158,162,166],{"title":139,"path":140,"stem":141,"icon":144},"ph:code",{"title":146,"path":147,"stem":148,"icon":149},"Cookies","/examples/handle-cookie","4.examples/handle-cookie","ph:arrow-right",{"title":151,"path":152,"stem":153,"icon":149},"HTTP QUERY Method","/examples/handle-query","4.examples/handle-query",{"title":155,"path":156,"stem":157,"icon":149},"Sessions","/examples/handle-session","4.examples/handle-session",{"title":159,"path":160,"stem":161,"icon":149},"Static Assets","/examples/serve-static-assets","4.examples/serve-static-assets",{"title":163,"path":164,"stem":165,"icon":149},"Stream Response","/examples/stream-response","4.examples/stream-response",{"title":167,"path":168,"stem":169,"icon":149},"Validate Data","/examples/validate-data","4.examples/validate-data",{"title":171,"path":172,"stem":173,"children":174,"icon":176},"Migration","/migration","5.migration/0.index",[175],{"title":171,"path":172,"stem":173,"icon":176},"icons8:up-round",{"title":178,"path":179,"stem":180,"children":181},"Blog","/blog","99.blog",[182,185,189],{"title":178,"path":179,"stem":183,"icon":184},"99.blog/index","i-lucide-file-text",{"title":186,"path":187,"stem":188,"icon":184},"H3 1.8 - Towards the Edge of the Web","/blog/v1.8","99.blog/1.v1.8",{"title":190,"path":191,"stem":192,"icon":184},"H3 v2 beta","/blog/v2-beta","99.blog/2.v2-beta",{"id":194,"title":38,"body":195,"description":1083,"extension":1084,"meta":1085,"navigation":1086,"path":39,"seo":1087,"stem":40,"__hash__":1088},"content/1.guide/1.basics/5.response.md",{"type":196,"value":197,"toc":1061,"icon":41},"minimark",[198,212,219,273,276,361,371,386,389,392,397,406,490,501,514,518,524,529,561,565,600,614,618,621,633,638,693,700,753,758,765,769,816,836,845,861,873,889,895,901,911,921,927,935,944,948,951,960,963,975,981,991,1000,1002,1008,1011,1023,1032,1038,1041,1057],[199,200,201,202,205,206,211],"p",{},"Values returned from ",[203,204,33],"a",{"href":34}," are automatically converted to a web ",[203,207,104],{"href":208,"rel":209},"https://developer.mozilla.org/en-US/docs/Web/API/Response",[210],"nofollow"," by H3.",[199,213,214,218],{},[215,216,217],"strong",{},"Example:"," Simple event handler function.",[220,221,226],"pre",{"className":222,"code":223,"language":224,"meta":225,"style":225},"language-js shiki shiki-themes github-light github-dark github-dark","const handler = defineHandler((event) => ({ hello: \"world\" }));\n","js","",[227,228,229],"code",{"__ignoreMap":225},[230,231,234,238,242,245,249,253,257,260,263,266,270],"span",{"class":232,"line":233},"line",1,[230,235,237],{"class":236},"so5gQ","const",[230,239,241],{"class":240},"suiK_"," handler",[230,243,244],{"class":236}," =",[230,246,248],{"class":247},"shcOC"," defineHandler",[230,250,252],{"class":251},"slsVL","((",[230,254,256],{"class":255},"sQHwn","event",[230,258,259],{"class":251},") ",[230,261,262],{"class":236},"=>",[230,264,265],{"class":251}," ({ hello: ",[230,267,269],{"class":268},"sfrk1","\"world\"",[230,271,272],{"class":251}," }));\n",[199,274,275],{},"H3 smartly converts handler into:",[220,277,279],{"className":222,"code":278,"language":224,"meta":225,"style":225},"const handler = (event) =>\n  new Response(JSON.stringify({ hello: \"world\" }), {\n    headers: {\n      \"content-type\": \"application/json;charset=UTF-8\",\n    },\n  });\n",[227,280,281,299,328,334,349,355],{"__ignoreMap":225},[230,282,283,285,287,289,292,294,296],{"class":232,"line":233},[230,284,237],{"class":236},[230,286,241],{"class":247},[230,288,244],{"class":236},[230,290,291],{"class":251}," (",[230,293,256],{"class":255},[230,295,259],{"class":251},[230,297,298],{"class":236},"=>\n",[230,300,302,305,308,311,314,317,320,323,325],{"class":232,"line":301},2,[230,303,304],{"class":236},"  new",[230,306,307],{"class":247}," Response",[230,309,310],{"class":251},"(",[230,312,313],{"class":240},"JSON",[230,315,316],{"class":251},".",[230,318,319],{"class":247},"stringify",[230,321,322],{"class":251},"({ hello: ",[230,324,269],{"class":268},[230,326,327],{"class":251}," }), {\n",[230,329,331],{"class":232,"line":330},3,[230,332,333],{"class":251},"    headers: {\n",[230,335,337,340,343,346],{"class":232,"line":336},4,[230,338,339],{"class":268},"      \"content-type\"",[230,341,342],{"class":251},": ",[230,344,345],{"class":268},"\"application/json;charset=UTF-8\"",[230,347,348],{"class":251},",\n",[230,350,352],{"class":232,"line":351},5,[230,353,354],{"class":251},"    },\n",[230,356,358],{"class":232,"line":357},6,[230,359,360],{"class":251},"  });\n",[362,363,364],"tip",{},[199,365,366,367,370],{},"\n🚀 H3 uses srvx ",[227,368,369],{},"FastResponse"," internally to optimize performances in Node.js runtime.",[199,372,373,374,379,380,385],{},"If the returned value from event handler is a ",[203,375,378],{"href":376,"rel":377},"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise",[210],"Promise"," or from an ",[203,381,384],{"href":382,"rel":383},"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function",[210],"async function",", H3 will wait for it to resolve before sending the response.",[199,387,388],{},"If an error is thrown, H3 automatically handles it with error handler.",[390,391],"read-more",{"title":43,"to":44},[393,394,396],"h2",{"id":395},"preparing-response","Preparing Response",[199,398,399,400,316],{},"Before returning a response in main handler, you can prepare response headers and status using ",[203,401,403],{"href":402},"/guide/api/h3event#eventres",[227,404,405],{},"event.res",[220,407,409],{"className":222,"code":408,"language":224,"meta":225,"style":225},"defineHandler((event) => {\n  event.res.status = 200;\n  event.res.statusText = \"OK\";\n  event.res.headers.set(\"Content-Type\", \"text/html\");\n  return \"\u003Ch1>Hello, World\u003C/h1>\";\n});\n",[227,410,411,427,441,453,475,485],{"__ignoreMap":225},[230,412,413,416,418,420,422,424],{"class":232,"line":233},[230,414,415],{"class":247},"defineHandler",[230,417,252],{"class":251},[230,419,256],{"class":255},[230,421,259],{"class":251},[230,423,262],{"class":236},[230,425,426],{"class":251}," {\n",[230,428,429,432,435,438],{"class":232,"line":301},[230,430,431],{"class":251},"  event.res.status ",[230,433,434],{"class":236},"=",[230,436,437],{"class":240}," 200",[230,439,440],{"class":251},";\n",[230,442,443,446,448,451],{"class":232,"line":330},[230,444,445],{"class":251},"  event.res.statusText ",[230,447,434],{"class":236},[230,449,450],{"class":268}," \"OK\"",[230,452,440],{"class":251},[230,454,455,458,461,463,466,469,472],{"class":232,"line":336},[230,456,457],{"class":251},"  event.res.headers.",[230,459,460],{"class":247},"set",[230,462,310],{"class":251},[230,464,465],{"class":268},"\"Content-Type\"",[230,467,468],{"class":251},", ",[230,470,471],{"class":268},"\"text/html\"",[230,473,474],{"class":251},");\n",[230,476,477,480,483],{"class":232,"line":351},[230,478,479],{"class":236},"  return",[230,481,482],{"class":268}," \"\u003Ch1>Hello, World\u003C/h1>\"",[230,484,440],{"class":251},[230,486,487],{"class":232,"line":357},[230,488,489],{"class":251},"});\n",[491,492,493],"note",{},[199,494,495,496,500],{},"\nIf a full ",[203,497,104],{"href":498,"rel":499},"https://developer.mozilla.org/en-US/docs/Web/API/Response/Response",[210]," value is returned, prepared status is discarded and headers will be merged/overridden. For performance reasons, it is best to only set headers only from final Response in this case.",[491,502,503],{},[199,504,505,506,509,510,513],{},"\nIf an Error happens, prepared status and headers will be discarded. The recommended way to include headers in error responses is via ",[227,507,508],{},"new HTTPError({ headers })",". As a last resort for headers that need to be set implicitly before the error is known (e.g., CORS), you can use ",[227,511,512],{},"event.res.errHeaders"," — these will be merged into error responses automatically.",[393,515,517],{"id":516},"response-types","Response Types",[199,519,520,521,316],{},"H3 smartly converts JavaScript values into web ",[203,522,104],{"href":498,"rel":523},[210],[525,526,528],"h3",{"id":527},"json-serializable-value","JSON Serializable Value",[199,530,531,532,536,537,468,540,468,543,546,547,550,551,556,557,560],{},"Returning a ",[203,533,313],{"href":534,"rel":535},"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON",[210]," serializable value (",[215,538,539],{},"object",[215,541,542],{},"array",[215,544,545],{},"number"," or ",[215,548,549],{},"boolean","), it will be stringified using ",[203,552,555],{"href":553,"rel":554},"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify",[210],"JSON.stringify()"," and sent with default ",[227,558,559],{},"application/json"," content-type.",[199,562,563],{},[215,564,217],{},[220,566,570],{"className":567,"code":568,"language":569,"meta":225,"style":225},"language-ts shiki shiki-themes github-light github-dark github-dark","app.get(\"/\", (event) => ({ hello: \"world\" }));\n","ts",[227,571,572],{"__ignoreMap":225},[230,573,574,577,580,582,585,588,590,592,594,596,598],{"class":232,"line":233},[230,575,576],{"class":251},"app.",[230,578,579],{"class":247},"get",[230,581,310],{"class":251},[230,583,584],{"class":268},"\"/\"",[230,586,587],{"class":251},", (",[230,589,256],{"class":255},[230,591,259],{"class":251},[230,593,262],{"class":236},[230,595,265],{"class":251},[230,597,269],{"class":268},[230,599,272],{"class":251},[362,601,602],{},[199,603,604,605,608,609,613],{},"\nReturned objects with ",[227,606,607],{},".toJSON()"," property can customize serialization behavior. Check ",[203,610,612],{"href":553,"rel":611},[210],"MDN docs"," for more info.",[525,615,617],{"id":616},"string","String",[199,619,620],{},"Returning a string value, sends it as plain text body.",[491,622,623],{},[199,624,625,626,629,630,316],{},"\nIf not setting ",[227,627,628],{},"content-type"," header, it can default to ",[227,631,632],{},"text/plain;charset=UTF-8",[199,634,635,637],{},[215,636,217],{}," Send HTML response.",[220,639,641],{"className":567,"code":640,"language":569,"meta":225,"style":225},"app.get(\"/\", (event) => {\n  event.res.headers.set(\"Content-Type\", \"text/html;charset=UTF-8\");\n  return \"\u003Ch1>hello world\u003C/h1>\";\n});\n",[227,642,643,663,680,689],{"__ignoreMap":225},[230,644,645,647,649,651,653,655,657,659,661],{"class":232,"line":233},[230,646,576],{"class":251},[230,648,579],{"class":247},[230,650,310],{"class":251},[230,652,584],{"class":268},[230,654,587],{"class":251},[230,656,256],{"class":255},[230,658,259],{"class":251},[230,660,262],{"class":236},[230,662,426],{"class":251},[230,664,665,667,669,671,673,675,678],{"class":232,"line":301},[230,666,457],{"class":251},[230,668,460],{"class":247},[230,670,310],{"class":251},[230,672,465],{"class":268},[230,674,468],{"class":251},[230,676,677],{"class":268},"\"text/html;charset=UTF-8\"",[230,679,474],{"class":251},[230,681,682,684,687],{"class":232,"line":330},[230,683,479],{"class":236},[230,685,686],{"class":268}," \"\u003Ch1>hello world\u003C/h1>\"",[230,688,440],{"class":251},[230,690,691],{"class":232,"line":336},[230,692,489],{"class":251},[199,694,695,696,699],{},"You can also use ",[227,697,698],{},"html"," utility as shortcut.",[220,701,703],{"className":222,"code":702,"language":224,"meta":225,"style":225},"import { html } from \"h3\";\n\napp.get(\"/\", () => html(\"\u003Ch1>hello world\u003C/h1>\"));\n",[227,704,705,721,727],{"__ignoreMap":225},[230,706,707,710,713,716,719],{"class":232,"line":233},[230,708,709],{"class":236},"import",[230,711,712],{"class":251}," { html } ",[230,714,715],{"class":236},"from",[230,717,718],{"class":268}," \"h3\"",[230,720,440],{"class":251},[230,722,723],{"class":232,"line":301},[230,724,726],{"emptyLinePlaceholder":725},true,"\n",[230,728,729,731,733,735,737,740,742,745,747,750],{"class":232,"line":330},[230,730,576],{"class":251},[230,732,579],{"class":247},[230,734,310],{"class":251},[230,736,584],{"class":268},[230,738,739],{"class":251},", () ",[230,741,262],{"class":236},[230,743,744],{"class":247}," html",[230,746,310],{"class":251},[230,748,749],{"class":268},"\"\u003Ch1>hello world\u003C/h1>\"",[230,751,752],{"class":251},"));\n",[525,754,756],{"id":755},"response",[227,757,104],{},[199,759,760,761,764],{},"Returning a web ",[203,762,104],{"href":498,"rel":763},[210],", sends-it as final response.",[199,766,767],{},[215,768,217],{},[220,770,772],{"className":567,"code":771,"language":569,"meta":225,"style":225},"app.get(\"/\", (event) => new Response(\"Hello, world!\", { headers: { \"x-powered-by\": \"H3\" } }));\n",[227,773,774],{"__ignoreMap":225},[230,775,776,778,780,782,784,786,788,790,792,795,797,799,802,805,808,810,813],{"class":232,"line":233},[230,777,576],{"class":251},[230,779,579],{"class":247},[230,781,310],{"class":251},[230,783,584],{"class":268},[230,785,587],{"class":251},[230,787,256],{"class":255},[230,789,259],{"class":251},[230,791,262],{"class":236},[230,793,794],{"class":236}," new",[230,796,307],{"class":247},[230,798,310],{"class":251},[230,800,801],{"class":268},"\"Hello, world!\"",[230,803,804],{"class":251},", { headers: { ",[230,806,807],{"class":268},"\"x-powered-by\"",[230,809,342],{"class":251},[230,811,812],{"class":268},"\"H3\"",[230,814,815],{"class":251}," } }));\n",[817,818,819],"important",{},[199,820,821,822,824,825,829,830,833,834,316],{},"\nWhen sending a ",[227,823,104],{},", any ",[203,826,828],{"href":827},"#preparing-response","prepared headers"," that set before, will be merged as default headers. ",[227,831,832],{},"event.res.{status,statusText}"," will be ignored. For performance reasons, it is best to only set headers only from final ",[227,835,104],{},[525,837,839,546,842],{"id":838},"readablestream-or-readable",[227,840,841],{},"ReadableStream",[227,843,844],{},"Readable",[199,846,531,847,853,854,860],{},[203,848,851],{"href":849,"rel":850},"https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream",[210],[227,852,841],{}," or Node.js ",[203,855,858],{"href":856,"rel":857},"https://nodejs.org/api/stream.html#readable-streams",[210],[227,859,844],{}," sends it as stream.",[525,862,864,546,867,546,870],{"id":863},"arraybuffer-or-uint8array-or-buffer",[227,865,866],{},"ArrayBuffer",[227,868,869],{},"Uint8Array",[227,871,872],{},"Buffer",[199,874,875,876,468,880,884,885,316],{},"Send binary ",[203,877,866],{"href":878,"rel":879},"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer",[210],[203,881,869],{"href":882,"rel":883},"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array",[210]," or node ",[203,886,872],{"href":887,"rel":888},"https://nodejs.org/api/buffer.html#buffer",[210],[199,890,891,894],{},[227,892,893],{},"content-length"," header will be automatically set.",[525,896,898],{"id":897},"blob",[227,899,900],{},"Blob",[199,902,903,904,910],{},"Send a ",[203,905,908],{"href":906,"rel":907},"https://developer.mozilla.org/en-US/docs/Web/API/Blob",[210],[227,909,900],{}," as stream.",[199,912,913,916,917,920],{},[227,914,915],{},"Content-type"," and ",[227,918,919],{},"Content-Length"," headers will be automatically set.",[525,922,924],{"id":923},"file",[227,925,926],{},"File",[199,928,903,929,910],{},[203,930,933],{"href":931,"rel":932},"https://developer.mozilla.org/en-US/docs/Web/API/File",[210],[227,934,926],{},[199,936,937,468,939,916,941,920],{},[227,938,915],{},[227,940,919],{},[227,942,943],{},"Content-Disposition",[393,945,947],{"id":946},"special-types","Special Types",[199,949,950],{},"Some less commonly possible values for response types.",[525,952,954,546,957],{"id":953},"null-or-undefined",[227,955,956],{},"null",[227,958,959],{},"undefined",[199,961,962],{},"Sends a response with empty body.",[362,964,965],{},[199,966,967,968,971,972,316],{},"\nIf there is no ",[227,969,970],{},"return"," statement in event handler, it is same as ",[227,973,974],{},"return undefined",[525,976,978],{"id":977},"error",[227,979,980],{},"Error",[199,982,983,984,990],{},"Retuning an ",[203,985,988],{"href":986,"rel":987},"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error",[210],[227,989,980],{}," instance will send it.",[817,992,993],{},[199,994,995,996,999],{},"\nIt is better to ",[227,997,998],{},"throw"," errors instead of returning them. This allows proper propagation from any nested utility.",[390,1001],{"title":43,"to":44},[525,1003,1005],{"id":1004},"bigint",[227,1006,1007],{},"BigInt",[199,1009,1010],{},"Value will be sent as stringified version of BigInt number.",[491,1012,1013],{},[199,1014,1015,1016,1019,1020,613],{},"\nReturning a JSON object, does not allows BigInt serialization. You need to implement ",[227,1017,1018],{},".toJSON",". Check ",[203,1021,612],{"href":553,"rel":1022},[210],[525,1024,1026,546,1029],{"id":1025},"symbol-or-function",[227,1027,1028],{},"Symbol",[227,1030,1031],{},"Function",[199,1033,1034,1037],{},[215,1035,1036],{},"Returning Symbol or Function has undetermined behavior."," Currently, H3 sends a string-like representation of unknown Symbols and Functions but this behavior might be changed to throw an error in the future versions.",[199,1039,1040],{},"There are some internal known Symbols H3 internally uses:",[1042,1043,1044,1051],"ul",{},[1045,1046,1047,1050],"li",{},[227,1048,1049],{},"Symbol.for(\"h3.notFound\")",": Indicate no route is found to throw a 404 error.",[1045,1052,1053,1056],{},[227,1054,1055],{},"Symbol.for(\"h3.handled\")",": Indicate request is somehow handled and H3 should not continue (Node.js specific).",[1058,1059,1060],"style",{},"html pre.shiki code .so5gQ, html code.shiki .so5gQ{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#F97583}html pre.shiki code .suiK_, html code.shiki .suiK_{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#79B8FF}html pre.shiki code .shcOC, html code.shiki .shcOC{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#B392F0}html pre.shiki code .slsVL, html code.shiki .slsVL{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .sQHwn, html code.shiki .sQHwn{--shiki-light:#E36209;--shiki-default:#FFAB70;--shiki-dark:#FFAB70}html pre.shiki code .sfrk1, html code.shiki .sfrk1{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":225,"searchDepth":301,"depth":301,"links":1062},[1063,1064,1075],{"id":395,"depth":301,"text":396},{"id":516,"depth":301,"text":517,"children":1065},[1066,1067,1068,1069,1071,1073,1074],{"id":527,"depth":330,"text":528},{"id":616,"depth":330,"text":617},{"id":755,"depth":330,"text":104},{"id":838,"depth":330,"text":1070},"ReadableStream or Readable",{"id":863,"depth":330,"text":1072},"ArrayBuffer or Uint8Array or Buffer",{"id":897,"depth":330,"text":900},{"id":923,"depth":330,"text":926},{"id":946,"depth":301,"text":947,"children":1076},[1077,1079,1080,1081],{"id":953,"depth":330,"text":1078},"null or undefined",{"id":977,"depth":330,"text":980},{"id":1004,"depth":330,"text":1007},{"id":1025,"depth":330,"text":1082},"Symbol or Function","H3 automatically converts any returned value into a web response.","md",{"icon":41},{"icon":41},{"title":38,"description":1083},"f0cCcs13cdDmzcLKnEuj2QmJc1iLz7CSlRnxWf280AU",[1090,1092],{"title":33,"path":34,"stem":35,"description":1091,"icon":36,"children":-1},"An event handler is a function that receives an H3Event and returns a response.",{"title":43,"path":44,"stem":45,"description":1093,"icon":46,"children":-1},"Send errors by throwing an HTTPError.",1783690727813]