HTTP Request & Response
HTTP 요청 및 응답
HTTP 요청은 클라이언트가 서버로 보내는 거예요. 메서드, 주소, 헤더가 있고, 때로는 본문도 있어요. 응답은 상태, 헤더, 데이터를 반환해요.
다른 예시
양식이 JSON을 보내요. 422 응답은 각 항목의 에러를 알려주고, 201 응답은 새로 생긴 기록을 보여줘요.
주요 부분
- 01Originating request
- 02Resolution or processing hop
- 03Response, timing, and failure
사용할 때
명확한 상태 코드와 구조화된 본문을 사용하여 성공과 실패가 알려진 규칙을 따르도록 하십시오.
다음 경우에는 사용하지 마세요
모든 응답을 성공으로 간주하거나 민감한 세부 정보를 오류에 넣지 마십시오.
코드에서 사용된 이름
fetch() / HTTP status 출시하기 전에
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome:Complete the task with HTTP 요청 및 응답 (HTTP Request & Response)。 User context:양식이 JSON을 보내요. 422 응답은 각 항목의 에러를 알려주고, 201 응답은 새로 생긴 기록을 보여줘요. Technical concept or control:HTTP 요청 및 응답 (HTTP Request & Response)。 Why it fits:명확한 상태 코드와 구조화된 본문을 사용하여 성공과 실패가 알려진 규칙을 따르도록 하십시오. Do not use it when:모든 응답을 성공으로 간주하거나 민감한 세부 정보를 오류에 넣지 마십시오. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary):이 표준은 나열된 범위만 적용합니다. 시각적 스타일, 제품 결정, 또는 Vibulary 예시는 선택하지 않습니다. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
이 요청을 확인하세요
Review how HTTP 요청 및 응답 (HTTP Request & Response) is used now. Definition: HTTP 요청은 클라이언트가 서버로 보내는 거예요. 메서드, 주소, 헤더가 있고, 때로는 본문도 있어요. 응답은 상태, 헤더, 데이터를 반환해요. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.