[{"data":1,"prerenderedAt":525},["ShallowReactive",2],{"navigation_docs":3,"-guide-code-snippets":172,"-guide-code-snippets-surround":520},[4,30,100,134],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":29},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,14,18,21,25],{"title":11,"path":12,"stem":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":5,"path":19,"stem":20},"\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start",{"title":22,"path":23,"stem":24},"Build from source","\u002Fgetting-started\u002Fbuild-from-source","1.getting-started\u002F4.build-from-source",{"title":26,"path":27,"stem":28},"Troubleshooting","\u002Fgetting-started\u002Ftroubleshooting","1.getting-started\u002F5.troubleshooting",false,{"title":31,"icon":32,"path":33,"stem":34,"children":35,"page":29},"Guide","i-lucide-book-open","\u002Fguide","2.guide",[36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96],{"title":37,"path":38,"stem":39},"Interface","\u002Fguide\u002Finterface","2.guide\u002F01.interface",{"title":41,"path":42,"stem":43},"Workspace","\u002Fguide\u002Fworkspace","2.guide\u002F02.workspace",{"title":45,"path":46,"stem":47},"Collections","\u002Fguide\u002Fcollections","2.guide\u002F03.collections",{"title":49,"path":50,"stem":51},"HTTP requests","\u002Fguide\u002Fhttp-requests","2.guide\u002F04.http-requests",{"title":53,"path":54,"stem":55},"Variables","\u002Fguide\u002Fvariables","2.guide\u002F05.variables",{"title":57,"path":58,"stem":59},"Authorization","\u002Fguide\u002Fauthorization","2.guide\u002F06.authorization",{"title":61,"path":62,"stem":63},"Scripts and tests","\u002Fguide\u002Fscripts-and-tests","2.guide\u002F07.scripts-and-tests",{"title":65,"path":66,"stem":67},"Collection runner","\u002Fguide\u002Fcollection-runner","2.guide\u002F08.collection-runner",{"title":69,"path":70,"stem":71},"Import and export","\u002Fguide\u002Fimport-export","2.guide\u002F09.import-export",{"title":73,"path":74,"stem":75},"Code snippets","\u002Fguide\u002Fcode-snippets","2.guide\u002F10.code-snippets",{"title":77,"path":78,"stem":79},"gRPC","\u002Fguide\u002Fgrpc","2.guide\u002F11.grpc",{"title":81,"path":82,"stem":83},"WebSocket","\u002Fguide\u002Fwebsocket","2.guide\u002F12.websocket",{"title":85,"path":86,"stem":87},"Cookies, proxy and certificates","\u002Fguide\u002Fcookies-proxy-certificates","2.guide\u002F13.cookies-proxy-certificates",{"title":89,"path":90,"stem":91},"Settings","\u002Fguide\u002Fsettings","2.guide\u002F14.settings",{"title":93,"path":94,"stem":95},"Keyboard shortcuts","\u002Fguide\u002Fkeyboard-shortcuts","2.guide\u002F15.keyboard-shortcuts",{"title":97,"path":98,"stem":99},"Privacy and security","\u002Fguide\u002Fprivacy-and-security","2.guide\u002F16.privacy-and-security",{"title":101,"icon":102,"path":103,"stem":104,"children":105,"page":29},"Reference","i-lucide-square-terminal","\u002Freference","3.reference",[106,110,114,118,122,126,130],{"title":107,"path":108,"stem":109},"Command line","\u002Freference\u002Fcli","3.reference\u002F1.cli",{"title":111,"path":112,"stem":113},"Automation tools","\u002Freference\u002Fautomation-tools","3.reference\u002F2.automation-tools",{"title":115,"path":116,"stem":117},"Scripting API","\u002Freference\u002Fscripting-api","3.reference\u002F3.scripting-api",{"title":119,"path":120,"stem":121},"Dynamic variables","\u002Freference\u002Fdynamic-variables","3.reference\u002F4.dynamic-variables",{"title":123,"path":124,"stem":125},"UI control channel","\u002Freference\u002Fui-control-channel","3.reference\u002F5.ui-control-channel",{"title":127,"path":128,"stem":129},"Workspace format","\u002Freference\u002Fworkspace-format","3.reference\u002F6.workspace-format",{"title":131,"path":132,"stem":133},"Feature status","\u002Freference\u002Ffeature-status","3.reference\u002F7.feature-status",{"title":135,"icon":136,"path":137,"stem":138,"children":139,"page":29},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","4.contributing",[140,144,148,152,156,160,164,168],{"title":141,"path":142,"stem":143},"Contributing overview","\u002Fcontributing\u002Foverview","4.contributing\u002F1.overview",{"title":145,"path":146,"stem":147},"Development","\u002Fcontributing\u002Fdevelopment","4.contributing\u002F2.development",{"title":149,"path":150,"stem":151},"Architecture","\u002Fcontributing\u002Farchitecture","4.contributing\u002F3.architecture",{"title":153,"path":154,"stem":155},"Known gaps","\u002Fcontributing\u002Fgaps","4.contributing\u002F4.gaps",{"title":157,"path":158,"stem":159},"Adding a feature","\u002Fcontributing\u002Fadding-a-feature","4.contributing\u002F5.adding-a-feature",{"title":161,"path":162,"stem":163},"Assets and clean-room","\u002Fcontributing\u002Fassets-and-clean-room","4.contributing\u002F6.assets-and-clean-room",{"title":165,"path":166,"stem":167},"Releasing","\u002Fcontributing\u002Freleasing","4.contributing\u002F7.releasing",{"title":169,"path":170,"stem":171},"Writing the documentation","\u002Fcontributing\u002Fdocumentation","4.contributing\u002F8.documentation",{"id":173,"title":73,"body":174,"description":513,"extension":514,"links":515,"meta":516,"navigation":517,"path":74,"seo":518,"stem":75,"__hash__":519},"docs\u002F2.guide\u002F10.code-snippets.md",{"type":175,"value":176,"toc":503},"minimark",[177,181,186,205,211,219,223,234,335,339,342,393,408,412,431,435,444,456,460,465,497],[178,179,180],"p",{},"The snippet panel turns the request you are editing into code in one of eight languages. It is generated locally from the request itself. Nothing is sent.",[182,183,185],"h2",{"id":184},"open-the-panel","Open the panel",[187,188,189,198],"ol",{},[190,191,192,193,197],"li",{},"Press ",[194,195,196],"code",{},"Cmd\u002FCtrl+K"," to open the palette.",[190,199,200,201,204],{},"Type ",[194,202,203],{},"Toggle code snippet panel"," and run it. This toggles the right panel. The command has no keyboard shortcut.",[178,206,207,208],{},"With no request open, the panel says ",[194,209,210],{},"Open a request to see its generated code.",[178,212,213,214,218],{},"The panel follows the active tab's ",[215,216,217],"strong",{},"current draft",", including edits you have not saved yet. The result is syntax-coloured and read-only. Use the copy button to put it on the clipboard.",[182,220,222],{"id":221},"languages","Languages",[178,224,225,226,229,230,233],{},"The language menu lists these labels. The id is what the ",[194,227,228],{},"language"," argument of the ",[194,231,232],{},"snippet_generate"," tool takes.",[235,236,237,250],"table",{},[238,239,240],"thead",{},[241,242,243,247],"tr",{},[244,245,246],"th",{},"Id",[244,248,249],{},"Label in the panel",[251,252,253,265,275,285,295,305,315,325],"tbody",{},[241,254,255,262],{},[256,257,258,261],"td",{},[194,259,260],{},"curl"," (default)",[256,263,264],{},"cURL",[241,266,267,272],{},[256,268,269],{},[194,270,271],{},"raw-http",[256,273,274],{},"Raw HTTP\u002F1.1",[241,276,277,282],{},[256,278,279],{},[194,280,281],{},"fetch",[256,283,284],{},"JavaScript (fetch)",[241,286,287,292],{},[256,288,289],{},[194,290,291],{},"python",[256,293,294],{},"Python (requests)",[241,296,297,302],{},[256,298,299],{},[194,300,301],{},"go",[256,303,304],{},"Go (net\u002Fhttp)",[241,306,307,312],{},[256,308,309],{},[194,310,311],{},"rust",[256,313,314],{},"Rust (reqwest)",[241,316,317,322],{},[256,318,319],{},[194,320,321],{},"powershell",[256,323,324],{},"PowerShell",[241,326,327,332],{},[256,328,329],{},[194,330,331],{},"node-axios",[256,333,334],{},"NodeJS (axios)",[182,336,338],{"id":337},"options","Options",[178,340,341],{},"The gear button in the panel opens two options:",[235,343,344,357],{},[238,345,346],{},[241,347,348,351,354],{},[244,349,350],{},"Option",[244,352,353],{},"Values",[244,355,356],{},"Default",[251,358,359,378],{},[241,360,361,364,376],{},[256,362,363],{},"Indent",[256,365,366,369,370,369,373],{},[194,367,368],{},"2 spaces",", ",[194,371,372],{},"4 spaces",[194,374,375],{},"Tab",[256,377,368],{},[241,379,380,383,390],{},[256,381,382],{},"Include boilerplate",[256,384,385,386,389],{},"on \u002F off (wraps the request in imports and a ",[194,387,388],{},"main",")",[256,391,392],{},"on",[178,394,395,396,399,400,403,404,407],{},"The tool takes ",[194,397,398],{},"indent"," (an integer from 0 to 8; ",[194,401,402],{},"0"," means a tab) and ",[194,405,406],{},"include_boilerplate",". The cURL output uses a fixed style and ignores both options.",[182,409,411],{"id":410},"what-goes-into-a-snippet","What goes into a snippet",[413,414,415,421],"ul",{},[190,416,417,420],{},[215,418,419],{},"Variables stay unresolved."," A URL built from a base-URL variable keeps its variable reference as written. The snippet is a template you can reuse. The panel's tooltip says the resolved URL is shown in the Console. Values are never substituted, so secret variable values do not enter snippets. Text you type literally into a request does.",[190,422,423,426,427,430],{},[215,424,425],{},"Unsupported body kinds become a comment."," If a language cannot express a body kind, the snippet shows a comment instead of dropping the request. For example, Go renders form-data rows as comments and suggests a ",[194,428,429],{},"multipart.Writer",".",[182,432,434],{"id":433},"limits","Limits",[178,436,437,438,440,441,430],{},"Snippets are for HTTP requests only. gRPC and WebSocket requests have no snippet. ",[194,439,232],{}," answers ",[194,442,443],{},"snippet_generate supports HTTP requests only; gRPC\u002FWS snippets are not implemented yet",[445,446,447,448,451,452,455],"note",{},"A ",[194,449,450],{},"grpcurl"," snippet is planned (",[194,453,454],{},"d.grpcurl-snippet"," in the parity file) but does not exist yet.",[182,457,459],{"id":458},"headless","Headless",[178,461,462,464],{},[194,463,232],{}," is read-only.",[413,466,467,484,490],{},[190,468,469,470,369,473,476,477,369,479,481,482,430],{},"It takes ",[194,471,472],{},"collection",[194,474,475],{},"request",", and optionally ",[194,478,228],{},[194,480,398],{}," and ",[194,483,406],{},[190,485,486,487,430],{},"It returns ",[194,488,489],{},"{\"language\": …, \"snippet\": …}",[190,491,492,493,496],{},"It reads the ",[215,494,495],{},"saved"," request, not an unsaved draft.",[178,498,499,500,430],{},"See ",[501,502,111],"a",{"href":112},{"title":504,"searchDepth":505,"depth":505,"links":506},"",2,[507,508,509,510,511,512],{"id":184,"depth":505,"text":185},{"id":221,"depth":505,"text":222},{"id":337,"depth":505,"text":338},{"id":410,"depth":505,"text":411},{"id":433,"depth":505,"text":434},{"id":458,"depth":505,"text":459},"Generate cURL, raw HTTP, fetch, Python, Go, Rust, PowerShell and Node axios code from an HTTP request.","md",null,{},true,{"title":73,"description":513},"-i4WAkeNrm1jQYVAJtBulW82jje4OE6bHMJ_mAYT4Oo",[521,523],{"title":69,"path":70,"stem":71,"description":522,"children":-1},"Import Postman, OpenAPI, HAR, cURL, Bruno folders and .proto files. Export collections, environments, globals and the whole workspace.",{"title":77,"path":78,"stem":79,"description":524,"children":-1},"Call unary and streaming gRPC methods using server reflection, imported .proto files or inline definitions.",1793179613009]