bxmaximum/bitrix-framework-skills

bitrix-request-response

Application, Context, HttpRequest (query/post/JSON body), HttpResponse, Json/AjaxJson/Redirect/file responses, cookies, Converter, Uri, UuidGenerator.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/bxmaximum/bitrix-framework-skills --skill bitrix-request-response

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Application, Context, Request, Response

Baseline: main 23.0+ · Verified: main 26.800.0

TaskRead
Application, Context, site, language, session accessrules/application-context.md
Reading query, form, headers, cookies, files, JSON bodyrules/request.md
HttpResponse, Json/AjaxJson, redirect, files, cookies, Converterrules/response.md
Uri, UuidGeneratorrules/uri-uuid.md

Invariants

  • Request data only via $this->getRequest() (controllers) or Context::getCurrent()->getRequest(). Never $_GET/$_POST/$_COOKIE/$_SERVER.
  • Use the getter for the known source (getQuery/getPost/getHeader/getCookie). get() merges query and form only.
  • A JSON body is not in get()/getPost() and is bound to action params only in JsonController: getJsonList() or JsonPayload.
  • Filtered values ($request['x']) are not escaped: cast, validate, escape on output.
  • Output via response objects (HttpResponse, Engine\Response\*), not header()/echo json_encode().

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills