bitrix-request-response

Automate Bitrix HTTP handling with Context-based requests and standardized response classes.

33|3|Updated Jun 5, 2025
One-click install
npx skills add https://github.com/bxmaximum/bitrix_ai_challenge --skill bitrix-request-response
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bitrix-request-response
Source: https://github.com/bxmaximum/bitrix_ai_challenge/tree/main/.agents/skills/bitrix-request-response
Command: npx skills add https://github.com/bxmaximum/bitrix_ai_challenge --skill bitrix-request-response

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates and standardizes Bitrix HTTP-layer interactions by replacing direct $_GET/$_POST access with Context-based request handling and providing consistent Response objects for JSON, HTML, files, and redirects.

Core Features & Use Cases

  • Centralized Application and Context orchestration, with HttpRequest/HttpResponse wrappers.
  • Uniform access to inputs (headers, cookies, query, and post data) via Context instead of globals.
  • Ready-to-use Response classes (Json, AjaxJson, Redirect, Html, BFile, Zip) and helper utilities.

Quick Start

Read inputs through Context and return a Json response to quickly test integration.

Frequently Asked Questions about bitrix-request-response

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle HTTP requests and responses in Bitrix without using global arrays?

Bitrix HTTP layer handling replaces direct $_GET and $_POST access with Context-based request reading, providing unified access to Application, Context, HttpRequest, and HttpResponse for standardized, testable API interactions.

What is the best way to return JSON and redirect responses from a Bitrix endpoint?

Bitrix HTTP response handling provides ready-to-use Response classes for JSON, AjaxJson, and Redirect, ensuring consistent output for API endpoints and web requests.

How do I manage cookies and headers when building an API in Bitrix?

Cookie management and headers are handled uniformly through Bitrix Context input reading, replacing global array dependencies with standardized Application and Context orchestration for safe API interactions.

Does Bitrix support standardized response types for file downloads and HTML output?

Bitrix HTTP response handling includes ready-to-use Response classes for Html, BFile, and Zip, enabling standardized file downloads and HTML output directly from Context-based endpoints.

Why should I use Context-based input reading for Bitrix API endpoints?

Context-based input reading for Bitrix API endpoints standardizes the HTTP layer, ensuring safe and testable interactions by replacing direct global access with unified HttpRequest and HttpResponse wrappers.