--- title: HTTP 요청 메서드 slug: Web/HTTP/Methods tags: - HTTP - Methods - Reference translation_of: Web/HTTP/Methods --- <div>{{HTTPSidebar}}</div> <p>HTTP는 <strong>요청 메서드</strong>를 정의하여, 주어진 리소스에 수행하길 원하는 행동을 나타냅니다. 간혹 요청 메서드를 "HTTP 동사"라고 부르기도 합니다. 각각의 메서드는 서로 다른 의미를 구현하지만, 일부 기능은 메서드 집합 간에 서로 공유하기도 합니다. 이를테면 응답 메서드는 {{glossary("safe", "안전")}}하거나, {{glossary("cacheable", "캐시 가능")}}하거나, {{glossary("idempotent", "멱등성")}}을 가질 수 있습니다.</p> <dl> <dt>{{httpmethod("GET")}}</dt> <dd><code>GET</code> 메서드는 특정 리소스의 표시를 요청합니다. <code>GET</code>을 사용하는 요청은 오직 데이터를 받기만 합니다.</dd> <dt>{{httpmethod("HEAD")}}</dt> <dd><code>HEAD</code> 메서드는 <code>GET</code> 메서드의 요청과 동일한 응답을 요구하지만, 응답 본문을 포함하지 않습니다.</dd> <dt>{{httpmethod("POST")}}</dt> <dd><code>POST</code> 메서드는 특정 리소스에 엔티티를 제출할 때 쓰입니다. 이는 종종 서버의 상태의 변화나 부작용을 일으킵니다.</dd> <dt>{{httpmethod("PUT")}}</dt> <dd> <p><code>PUT</code> 메서드는 목적 리소스 모든 현재 표시를 요청 payload로 바꿉니다.</p> </dd> <dt>{{httpmethod("DELETE")}}</dt> <dd><code>DELETE</code> 메서드는 특정 리소스를 삭제합니다.</dd> <dt>{{httpmethod("CONNECT")}}</dt> <dd> <p><code>CONNECT</code> 메서드는 목적 리소스로 식별되는 서버로의 터널을 맺습니다.</p> </dd> <dt>{{httpmethod("OPTIONS")}}</dt> <dd><code>OPTIONS</code> 메서드는 목적 리소스의 통신을 설정하는 데 쓰입니다.</dd> <dt>{{httpmethod("TRACE")}}</dt> <dd> <p><code>TRACE</code> 메서드는 목적 리소스의 경로를 따라 메시지 loop-back 테스트를 합니다.</p> </dd> <dt>{{httpmethod("PATCH")}}</dt> <dd><code>PATCH</code> 메서드는 리소스의 부분만을 수정하는 데 쓰입니다.</dd> </dl> <h2 id="명세">명세</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">명세</th> <th scope="col">제목</th> <th scope="col">해설</th> </tr> <tr> <td>{{RFC("7231", "Request methods", "4")}}</td> <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td> <td>Specifies GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE.</td> </tr> <tr> <td>{{RFC("5789", "Patch method", "2")}}</td> <td>PATCH Method for HTTP</td> <td>Specifies PATCH.</td> </tr> </tbody> </table> <h2 id="브라우저_호환성">브라우저 호환성</h2> <p>{{Compat("http/methods")}}</p> <h2 id="같이_보기">같이 보기</h2> <ul> <li><a href="/ko/docs/Web/HTTP/Headers">HTTP 헤더</a></li> </ul>