가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Chapter 3

Request-Response Cycle, Headers, Payloads, and JSON Basics

Understand what actually travels between client and server in a RESTful API and how requests and responses are structured.

Inside this chapter

  1. What a Request Contains
  2. What a Response Contains
  3. JSON as the Common Data Format
  4. Important Headers
  5. Business Example

Series navigation

Study the chapters in order for the clearest path from REST basics to advanced API design, operations, and production readiness. Use the navigation at the bottom to move smoothly across the full tutorial series.

Tutorial Home

Chapter 3

What a Request Contains

An HTTP request typically includes a method, URL, headers, optional query parameters, and sometimes a body. The body usually carries data for create or update operations, while headers provide metadata such as authentication tokens, content type, and caching rules.

Chapter 3

What a Response Contains

An HTTP response usually contains a status code, headers, and a body. The body may return JSON data, error details, an empty success response, or sometimes files and binary content.

Chapter 3

JSON as the Common Data Format

{
  "id": 42,
  "name": "Asha",
  "email": "asha@example.com"
}

JSON is widely used because it is language-neutral, human-readable, and easy for browsers, mobile apps, and backend services to parse.

Chapter 3

Important Headers

  • Content-Type indicates the body format, such as application/json
  • Authorization carries auth credentials or bearer tokens
  • Accept tells the server what response format the client expects
  • Cache-Control influences caching behavior
Chapter 3

Business Example

A mobile banking app may send a POST request with JSON body data to transfer funds, include an authorization token in the header, and receive a JSON response containing transaction status, timestamps, and reference numbers.

Copyright © 2026, WithoutBook.