Request Transformer 정책 구성 레퍼런스
Request Transformer 정책 구성 레퍼런스 (Request Transformer Policy Configuration Reference)
이 문서는 Kong의 Request Transformer 플러그인에서 사용할 수 있는 구성 옵션을 JSON 스키마 형태로 정리한 레퍼런스예요. 헤더, 쿼리스트링, 본문, URI를 대상으로 replace, add, append, remove 동작을 설정하는 방법을 필드별 타입과 기본값과 함께 한눈에 확인할 수 있어요. http_method 옵션으로 요청 메서드를 GET이나 POST 같은 값으로 변경하는 방법도 다뤄요. 플러그인 설정을 작성하거나 검토할 때 옵션별 세부 사항을 빠르게 짚고 넘어가기 좋은 문서예요
출처: 문서
본문
{
"properties": {
"config": {
"type": "object",
"properties": {
"replace": {
"type": "object",
"properties": {
"body": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"headers": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"querystring": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"uri": {
"type": "string"
}
}
},
"add": {
"type": "object",
"properties": {
"querystring": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"body": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"headers": {
"type": "array",
"items": {
"type": "string"
},
"default": []
}
}
},
"append": {
"type": "object",
"properties": {
"body": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"headers": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"querystring": {
"type": "array",
"items": {
"type": "string"
},
"default": []
}
}
},
"http_method": {
"type": "string",
"description": "A string representing an HTTP method, such as GET, POST, PUT, or DELETE. The string must contain only uppercase letters."
},
"remove": {
"type": "object",
"properties": {
"body": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"headers": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"querystring": {
"type": "array",
"items": {
"type": "string"
},
"default": []
}
}
},
"rename": {
"type": "object",
"properties": {
"headers": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"querystring": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"body": {
"type": "array",
"items": {
"type": "string"
},
"default": []
}
}
}
}
}
}
}
관련 리소스
더 알아보기 (Learn more)
- 템플릿 기반 변환 등 더 고급 기능이 필요할 때 참고할 수 있는 상위 버전 정책 문서예요 — Request Transformer Advanced Policy
- LLM을 활용해 요청을 변환하는 AI 버전 정책의 구성을 설명하는 문서예요 — AI Request Transformer Policy
- AI 기반 요청 변환 정책의 엔티티 스키마와 관리 방법을 다루는 문서예요 — AI Policy entity