Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: ## Context - Design doc: https://docs.google.com/document/d/1oAxFfQDJ2Ti3NH981jW-okfcrx4cPRo6N8FWKUp5WxM/edit#heading=h.g9v8c7dr6d6o - Context: https://fb.workplace.com/groups/proxygendevelopers/posts/1033854548378587/?comment_id=1040393961057979 ## This diff - Create a `createProxyStatusEncrypted` function. - We'll call this function at multiple places in DFSRouter for 429/503 responses. - Next half, Traffic team plans to have a KR to make our proxy-status header library RFC compliant. We plan to modify this function like this: ``` ProxyStatusEncrypted createProxyStatusHeader(StatusType statusType, std::string& proxy, std::string& details) { if (use legacy format) { // Example result: // `Proxy-Status: http_request_error; e_proxy="dfsrouter"; details="DFSRouter RPS Throttling"` } else { // Example result: // `Proxy-Status: "dfsrouter"; error=http_request_error; details="DFSRouter RPS Throttling"` } } ``` - Add the [standard field "details"](https://www.rfc-editor.org/rfc/rfc9209.html#section-2.1.5) to ProxyStatus class. Reviewed By: mjsaltus Differential Revision: D62532980 fbshipit-source-id: 078533998927eac01ca9ecc0264410bfd4b573d1
- Loading branch information