bxmaximum/bitrix-framework-skills

bitrix-request-response

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

Vedi sorgente

Come usare

  1. Copia il comando e controlla il pacchetto prima di installarlo nel tuo ambiente agente.
  2. Controlla strumenti, credenziali e ambienti richiesti nel documento originale.
  3. Descrivi input e risultato desiderato; confronta l’output con le fonti.
npx skills add https://github.com/bxmaximum/bitrix-framework-skills --skill bitrix-request-response

Prima di iniziare

  • L’installazione non include abbonamenti, quote API o accesso ai file.
  • Stelle e installazioni indicano attività, non un test indipendente di qualità o sicurezza.
Documento Skill originale

Contenuto dal repository con titoli, esempi, codice, tabelle, link e immagini preservati.

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().

Correlati per attività

dallo stesso repository

Altri Skills

Tutti gli Skills