Exit Transformer 플러그인 구성 레퍼런스
Exit Transformer 플러그인 구성 레퍼런스 (Exit Transformer Plugin Configuration Reference)
이 문서는 Kong의 Exit Transformer 플러그인에서 사용할 수 있는 설정 파라미터를 정리한 구성 레퍼런스예요. Exit Transformer 플러그인은 Lua 함수를 활용해 응답을 변환하는 플러그인으로, 여기서는 필수 파라미터인 functions와 예상치 못한 오류나 알 수 없는 상태 코드의 응답 변환 여부를 결정하는 handle_unexpected, handle_unknown 설정을 확인할 수 있어요. 또한 consumer, route, service 같은 스코프 필드와 protocols 설정을 통해 플러그인이 적용될 대상과 프로토콜 범위를 지정하는 방법도 함께 설명하고 있어요
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"functions": {
"items": {
"type": "string"
},
"type": "array"
},
"handle_unexpected": {
"default": false,
"description": "Determines whether to handle unexpected errors by transforming their responses.",
"type": "boolean"
},
"handle_unknown": {
"default": false,
"description": "Determines whether to handle unknown status codes by transforming their responses.",
"type": "boolean"
}
},
"required": [
"functions"
],
"type": "object"
},
"consumer": {
"additionalProperties": false,
"description": "If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"expressions": {
"additionalProperties": true,
"type": "object"
},
"protocols": {
"default": [
"grpc",
"grpcs",
"http",
"https"
],
"description": "A set of strings representing HTTP protocols.",
"items": {
"enum": [
"grpc",
"grpcs",
"http",
"https"
],
"type": "string"
},
"type": "array"
},
"route": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"service": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"config"
]
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.