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