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

Request Transformer Advanced 정책 구성 참조

원문 보기 위키 갱신

Request Transformer Advanced 정책 구성 참조 (Request Transformer Advanced Policy Configuration Reference)

이 문서는 Request Transformer Advanced 정책에서 설정할 수 있는 모든 구성 옵션을 스키마 형태로 정리한 참조 자료예요. max_request_body_size를 통한 요청 본문 크기 제한과 allow, remove, rename, replace 같은 변환 동작별 옵션을 항목별로 확인할 수 있어요. 각 필드의 타입과 기본값, 세부 동작을 빠르게 찾아보고 싶을 때 활용하면 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "type": "object",
      "properties": {
        "max_request_body_size": {
          "type": "integer",
          "description": "The maximum request body size, in bytes, that the policy reads to apply body transformations. Bodies larger than `client_body_buffer_size` are buffered by Nginx to a temporary file. `-1` (the default) disables reading such buffered bodies, so their body transformations are skipped to avoid the extra disk I/O. `0` means unlimited (still bounded by Nginx's `client_max_body_size`), and any positive value caps how much of the buffered body is read from the temporary file.",
          "default": -1
        },
        "allow": {
          "type": "object",
          "properties": {
            "body": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "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": {
            "body": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            },
            "querystring": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            }
          }
        },
        "replace": {
          "type": "object",
          "properties": {
            "body": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            },
            "querystring": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            },
            "json_types": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "boolean",
                  "number",
                  "string"
                ]
              },
              "default": []
            },
            "uri": {
              "type": "string"
            }
          }
        },
        "add": {
          "type": "object",
          "properties": {
            "body": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            },
            "querystring": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            },
            "json_types": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "boolean",
                  "number",
                  "string"
                ]
              },
              "default": []
            }
          }
        },
        "append": {
          "type": "object",
          "properties": {
            "body": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            },
            "querystring": {
              "type": "array",
              "items": {
                "type": "string",
                "x-referenceable": true
              },
              "default": []
            },
            "json_types": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "boolean",
                  "number",
                  "string"
                ]
              },
              "default": []
            }
          }
        },
        "dots_in_keys": {
          "type": "boolean",
          "description": "Specify whether dots (for example, `customers.info.phone`) should be treated as part of a property name or used to descend into nested JSON objects.",
          "default": true
        }
      }
    }
  }
}

관련 리소스

더 알아보기 (Learn more)