feat: custom HTTP method (#4841)

This commit is contained in:
Sanjai Kumar
2025-09-02 23:09:48 +05:30
committed by GitHub
parent bf38cc0f51
commit 648581ded5
20 changed files with 494 additions and 72 deletions

View File

@@ -77,6 +77,8 @@ const bruToJson = (bru) => {
request: {
url: _.get(json, requestType === 'grpc-request' ? 'grpc.url' : 'http.url'),
headers: requestType === 'grpc-request' ? _.get(json, 'metadata', []) : _.get(json, 'headers', []),
// Preserving special characters in custom methods. Using _.upperCase strips special characters.
method: String(_.get(json, 'http.method') ?? '').toUpperCase(),
auth: _.get(json, 'auth', {}),
params: _.get(json, 'params', []),
vars: _.get(json, 'vars', []),