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