{"compiled":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nfunction _createMdxContent(props) {\n  const _components = {\n    code: \"code\",\n    figure: \"figure\",\n    h2: \"h2\",\n    h3: \"h3\",\n    p: \"p\",\n    pre: \"pre\",\n    span: \"span\",\n    strong: \"strong\",\n    table: \"table\",\n    tbody: \"tbody\",\n    td: \"td\",\n    th: \"th\",\n    thead: \"thead\",\n    tr: \"tr\",\n    ...props.components\n  }, {Box} = _components;\n  if (!Box) _missingMdxReference(\"Box\", true);\n  return _jsxs(_Fragment, {\n    children: [_jsx(_components.p, {\n      children: \"You can test simple server operation without a separate external program.\"\n    }), \"\\n\", _jsx(Box, {\n      type: \"warning\",\n      children: \"Run this command with the server turned on.\"\n    }), \"\\n\", _jsx(_components.figure, {\n      \"data-rehype-pretty-code-figure\": \"\",\n      children: _jsx(_components.pre, {\n        tabIndex: \"0\",\n        \"data-language\": \"ansi\",\n        \"data-theme\": \"material-theme-palenight github-light\",\n        children: _jsxs(_components.code, {\n          \"data-language\": \"ansi\",\n          \"data-theme\": \"material-theme-palenight github-light\",\n          style: {\n            display: \"grid\"\n          },\n          children: [_jsx(_components.span, {\n            \"data-line\": \"\",\n            children: _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#babed8\",\n                \"--shiki-light\": \"#24292e\"\n              },\n              children: \"$ zely request\"\n            })\n          }), \"\\n\", _jsx(_components.span, {\n            \"data-line\": \"\",\n            children: \" \"\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#babed8\",\n                \"--shiki-light\": \"#24292e\"\n              },\n              children: \"▸ baseURL: \"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#C3E88D\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#28a745\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"http://localhost:3001\"\n            })]\n          }), \"\\n\", _jsx(_components.span, {\n            \"data-line\": \"\",\n            children: \" \"\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#676E95\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#959da5\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"[12:31:35 AM]\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#82AAFF\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#0366d6\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \" info\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#babed8\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#24292e\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \" checking server... (requesting /)\"\n            })]\n          }), \"\\n\", _jsx(_components.span, {\n            \"data-line\": \"\",\n            children: \" \"\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#82AAFF\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#0366d6\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"GET\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#babed8\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#24292e\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"> /\"\n            })]\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#C3E88D\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#28a745\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"200\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#babed8\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#24292e\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \" {\\\"msg\\\":\\\"Hello\\\",\\\"name\\\":\\\"\\\"}\"\n            })]\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#82AAFF\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#0366d6\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"GET\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#babed8\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#24292e\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \">\"\n            })]\n          })]\n        })\n      })\n    }), \"\\n\", _jsx(_components.p, {\n      children: \"Set header or method using JavaScript code in input prompt.\"\n    }), \"\\n\", _jsx(_components.figure, {\n      \"data-rehype-pretty-code-figure\": \"\",\n      children: _jsx(_components.pre, {\n        tabIndex: \"0\",\n        \"data-language\": \"ansi\",\n        \"data-theme\": \"material-theme-palenight github-light\",\n        children: _jsxs(_components.code, {\n          \"data-language\": \"ansi\",\n          \"data-theme\": \"material-theme-palenight github-light\",\n          style: {\n            display: \"grid\"\n          },\n          children: [_jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#82AAFF\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#0366d6\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"GET\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#babed8\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#24292e\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"> config1 = { method: \\\"POST\\\", headers: { }, body: { name: \\\"Cat\\\" } }\"\n            })]\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#82AAFF\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#0366d6\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"GET\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#babed8\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#24292e\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"> set(config1)\"\n            })]\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#82AAFF\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#0366d6\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"POST\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#676E95\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#959da5\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"(config1)\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#babed8\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#24292e\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"> /greeting\"\n            })]\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#C3E88D\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#28a745\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \"200\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#babed8\",\n                \"--shiki-dark-font-weight\": \"bold\",\n                \"--shiki-light\": \"#24292e\",\n                \"--shiki-light-font-weight\": \"bold\"\n              },\n              children: \" Hello, Cat!\"\n            })]\n          })]\n        })\n      })\n    }), \"\\n\", _jsxs(Box, {\n      children: [\"All commands except those starting with \", _jsx(_components.code, {\n        children: \"/\"\n      }), \" are treated as JavaScript code.\"]\n    }), \"\\n\", _jsxs(Box, {\n      children: [\"Declare variables without declaration statements such as \", _jsx(_components.code, {\n        children: \"const\"\n      }), \" or \", _jsx(_components.code, {\n        children: \"let\"\n      }), \".\"]\n    }), \"\\n\", _jsx(_components.h2, {\n      children: \"Functions\"\n    }), \"\\n\", _jsx(_components.p, {\n      children: \"The prompt has a few functions to help with the request.\"\n    }), \"\\n\", _jsx(_components.h3, {\n      children: \"set()\"\n    }), \"\\n\", _jsx(_components.p, {\n      children: \"Set request options.\"\n    }), \"\\n\", _jsx(_components.figure, {\n      \"data-rehype-pretty-code-figure\": \"\",\n      children: _jsx(_components.pre, {\n        tabIndex: \"0\",\n        \"data-language\": \"js\",\n        \"data-theme\": \"material-theme-palenight github-light\",\n        children: _jsxs(_components.code, {\n          \"data-language\": \"js\",\n          \"data-theme\": \"material-theme-palenight github-light\",\n          style: {\n            display: \"grid\"\n          },\n          children: [_jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#82AAFF\",\n                \"--shiki-light\": \"#6F42C1\"\n              },\n              children: \"set\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#BABED8\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \"(\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \"{\"\n            })]\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#F07178\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \"  method\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \":\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#032F62\"\n              },\n              children: \" '\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#C3E88D\",\n                \"--shiki-light\": \"#032F62\"\n              },\n              children: \"METHOD\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#032F62\"\n              },\n              children: \"'\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \",\"\n            })]\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#F07178\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \"  headers\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \":\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \" {\"\n            })]\n          }), \"\\n\", _jsx(_components.span, {\n            \"data-line\": \"\",\n            children: _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#676E95\",\n                \"--shiki-dark-font-style\": \"italic\",\n                \"--shiki-light\": \"#6A737D\",\n                \"--shiki-light-font-style\": \"inherit\"\n              },\n              children: \"    /* headers*/\"\n            })\n          }), \"\\n\", _jsx(_components.span, {\n            \"data-line\": \"\",\n            children: _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \"  },\"\n            })\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#F07178\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \"  body\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \":\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \" {\"\n            })]\n          }), \"\\n\", _jsx(_components.span, {\n            \"data-line\": \"\",\n            children: _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#676E95\",\n                \"--shiki-dark-font-style\": \"italic\",\n                \"--shiki-light\": \"#6A737D\",\n                \"--shiki-light-font-style\": \"inherit\"\n              },\n              children: \"    /* body */\"\n            })\n          }), \"\\n\", _jsx(_components.span, {\n            \"data-line\": \"\",\n            children: _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \"  },\"\n            })\n          }), \"\\n\", _jsxs(_components.span, {\n            \"data-line\": \"\",\n            children: [_jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \"}\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#BABED8\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \")\"\n            }), _jsx(_components.span, {\n              style: {\n                \"--shiki-dark\": \"#89DDFF\",\n                \"--shiki-light\": \"#24292E\"\n              },\n              children: \";\"\n            })]\n          })]\n        })\n      })\n    }), \"\\n\", _jsx(_components.h2, {\n      children: \"Arguments\"\n    }), \"\\n\", _jsxs(_components.table, {\n      children: [_jsx(_components.thead, {\n        children: _jsxs(_components.tr, {\n          children: [_jsx(_components.th, {\n            children: _jsx(_components.strong, {\n              children: \"option\"\n            })\n          }), _jsx(_components.th, {\n            children: _jsx(_components.strong, {\n              children: \"description\"\n            })\n          }), _jsx(_components.th, {\n            children: _jsx(_components.strong, {\n              children: \"default\"\n            })\n          })]\n        })\n      }), _jsx(_components.tbody, {\n        children: _jsxs(_components.tr, {\n          children: [_jsx(_components.td, {\n            children: _jsx(_components.code, {\n              children: \"base\"\n            })\n          }), _jsx(_components.td, {\n            children: \"Base URL\"\n          }), _jsx(_components.td, {})]\n        })\n      })]\n    })]\n  });\n}\nfunction MDXContent(props = {}) {\n  const {wrapper: MDXLayout} = props.components || ({});\n  return MDXLayout ? _jsx(MDXLayout, {\n    ...props,\n    children: _jsx(_createMdxContent, {\n      ...props\n    })\n  }) : _createMdxContent(props);\n}\nreturn {\n  default: MDXContent\n};\nfunction _missingMdxReference(id, component) {\n  throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");\n}\n","posts":[{"cli":"cli"},{"dev":"Developement Mode"},{"build":"Build Server"},{"init":"Init Project"},{"start":"Production Mode"},{"request":"Request Pages"},{"javascript-api":"Javascript API"},{"config":"Config"},{"create-server":"Create Server"},{"build-server":"Build Server"},{"virtual-page":"Virtual Pages"},{"core":"@zely-js/core"},{"store":"Store"},{"browser":"Browser (deprecated)"},{"builddev":"core.buildDev()"},{"controll":"core.controll()"},{"create-loader":"core.createLoader()"},{"create-virtual-page":"core.createVirtualPage()"},{"create-zely-server":"core.createZelyServer()"},{"default-sender":"core.defaultSender()"},{"logger":"core.logger"},{"page-cache":"core.PageCache"},{"structure":"Structure"},{"cache":"Cache"},{"fs":"FileSystem"},{"packages":"Packages"},{"senta":"Senta"},{"zely-js-cli":"zely-cli"},{"zely-js":"@zely-js/zely"},{"zely-js-core":"@zely-js/core"},{"zely-js-logger":"@zely-js/logger"},{"zely-js-static":"@zely-js/static"}],"target":{"request":"Request Pages"},"targetcategory":"CLI","directory":"apis"}