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