Протокол передачі гіпертексту (HTTP)

Основний протокол обміну даними у Всесвітній павутині.

Modern web applications rely on the extensibility of HTTP through custom headers (x-headers) and sophisticated caching mechanisms (Cache-Control). The protocol's statelessness is overcome by the use of JWT (JSON Web Tokens) or session cookies to maintain state across multiple requests. Understanding HTTP status codes is essential for debugging: 200 (OK), 301/302 (Redirections), 400 (Bad Request), 401 (Unauthorized), 403 (Forbidden), 404 (Not Found), and 500 (Internal Server Error). As APIs have become dominant, HTTP serves as the primary transport for REST and GraphQL architectures.

        graph LR
  Center["Протокол передачі гіпертексту (HTTP)"]:::main
  Rel_http["http"]:::related -.-> Center
  click Rel_http "/terms/http"
  Rel_http_protocol["http-protocol"]:::related -.-> Center
  click Rel_http_protocol "/terms/http-protocol"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 Простими словами

Це мова, якою спілкуються ваш браузер і веб-сайт. Браузер каже: 'Покажи мені цю сторінку', а сайт відповідає: 'Ось вона' або 'Вибачте, я не можу її знайти'.

🤓 Expert Deep Dive

Еволюція HTTP включає перехід від текстового HTTP/1.1 до бінарного HTTP/2 та UDP-базованого HTTP/3 (QUIC). Основна характеристика — відсутність збереження стану (statelessness), що вирішується за допомогою cookies та JWT.

📚 Джерела