設定 HTTP 要求/回應標頭限制

Edge for Private Cloud 4.16.05 版

Edge 路由器和訊息處理器對要求/回應標頭的大小和行大小設有預先定義的限制。

如要變更路由器 (負責處理 API 傳入要求) 的預設值,請在 /<inst_root>/apigee/customer/application/router.properties 中編輯下列屬性:

conf_router_HTTP.request.line.limit=4k
conf_router_HTTP.request.header.limit =8k
conf_router_HTTP.response.line.limit=4k
conf_router_HTTP.response.header.limit =8k

如果該檔案不存在,請建立檔案。

變更下列屬性後,必須重新啟動路由器:

> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-router restart

如要變更訊息處理器 (負責處理傳送至後端服務的傳出要求) 的預設值,請編輯 /<inst_root>/apigee/customer/application/message-processor.properties 中的下列屬性:

conf/http.properties+HTTPRequest.line.limit=7k
conf/http.properties+HTTPRequest.headers.limit=25k 
conf/http.properties+HTTPResponse.line.limit=2k 
conf/http.properties+HTTPResponse.headers.limit=25k

如果該檔案不存在,請建立檔案。

變更這些屬性後,您必須重新啟動訊息處理器:

> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-message-processor restart