본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

요청 종료 정책 구성 참조

원문 보기 위키 갱신

요청 종료 정책 구성 참조 (Request Termination Policy Configuration Reference)

이 문서는 Kong의 요청 종료(Request Termination) 정책을 구성할 때 사용하는 옵션들을 스키마 형태로 정리한 참조 자료예요. 응답 상태 코드, 메시지, 응답 본문 같은 응답 관련 설정부터 디버깅에 활용하는 echo와 trigger 옵션까지 각 필드의 타입, 기본값, 제약 조건을 한눈에 확인할 수 있어요. 정책을 실제 서비스에 적용하기 전에 어떤 값을 설정해야 하는지 정확히 파악하는 데 도움이 될 거예요

출처: 문서

본문

{
  "properties": {
    "config": {
      "type": "object",
      "properties": {
        "status_code": {
          "type": "integer",
          "maximum": 599,
          "minimum": 100,
          "description": "The response code to send. Must be an integer between 100 and 599.",
          "default": 503
        },
        "message": {
          "type": "string",
          "description": "The message to send, if using the default response generator."
        },
        "content_type": {
          "type": "string",
          "description": "Content type of the raw response configured with `config.body`."
        },
        "body": {
          "type": "string",
          "description": "The raw response body to send. This is mutually exclusive with the `config.message` field."
        },
        "echo": {
          "type": "boolean",
          "description": "When set, the policy will echo a copy of the request back to the client. The main usecase for this is debugging. It can be combined with `trigger` in order to debug requests on live systems without disturbing real traffic.",
          "default": false
        },
        "trigger": {
          "type": "string",
          "description": "A string representing an HTTP header name."
        }
      }
    }
  }
}

더 알아보기 (Learn more)

이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.