Post-Function 플러그인 구성 참조
Post-Function 플러그인 구성 참조 (Post-Function Plugin Configuration Reference)
Post-Function 플러그인의 모든 구성 옵션을 JSON 스키마 형태로 정리해 보여주는 참조 문서예요. access, rewrite, header_filter, body_filter, log처럼 요청 처리 흐름의 각 단계에서 동작을 지정하는 config 필드와 WebSocket 관련 필드들이 어떤 기본값과 구조를 갖는지 한눈에 확인할 수 있어요. protocols, route, service 같은 플러그인 공통 설정 항목도 함께 다루고 있어서, 플러그인을 실제로 구성하거나 튜닝할 때 참고하기 좋아요
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"access": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"body_filter": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"certificate": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"header_filter": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"log": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"rewrite": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"ws_client_frame": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"ws_close": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"ws_handshake": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
},
"ws_upstream_frame": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"expressions": {
"additionalProperties": true,
"type": "object"
},
"protocols": {
"default": [
"grpc",
"grpcs",
"http",
"https"
],
"description": "A set of strings representing protocols.",
"items": {
"description": "A string representing a protocol, such as HTTP or HTTPS.",
"enum": [
"grpc",
"grpcs",
"http",
"https",
"tcp",
"tls",
"tls_passthrough",
"udp",
"ws",
"wss"
],
"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"
}
}
}
관련 자료
더 알아보기 (Learn more)
- 요청 헤더 이름을 조정하는 방법을 다룬 실습 가이드로, 플러그인 활용 예시를 익히기에 좋아요 — Adjust header names in a request
- 같은 방식으로 동작하는 형제 플러그인인 Pre-Function의 문서예요, 함께 비교해 보면 각 플러그인의 실행 시점 차이를 이해하는 데 도움이 돼요 — Pre-Function plugin