-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels