We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onRequestBody(body_buffer_length: usize, end_of_stream: bool): FilterDataStatusValues { const contentType: String = stream_context.headers.request.get("Content-Type"); if (contentType.toLowerCase()==="application/json") { const arrayBuffer: ArrayBuffer = get_buffer_bytes(BufferTypeValues.HttpRequestBody,0, end_of_stream); arrayBuffer } if (contentType.toLowerCase()==="application/x-www-form-urlencoded") { const arrayBuffer: ArrayBuffer = get_buffer_bytes(BufferTypeValues.HttpRequestBody,0, end_of_stream); } return FilterDataStatusValues.Continue; }
How do I convert ArrayBuffer to the corresponding data, such as map, json
The text was updated successfully, but these errors were encountered:
My requirement is to parse the body, read the corresponding parameters, and put them in the header to pass them upstream
Sorry, something went wrong.
No branches or pull requests
How do I convert ArrayBuffer to the corresponding data, such as map, json
The text was updated successfully, but these errors were encountered: