Skip to content

Commit be61f13

Browse files
committed
Update proxy_wasm_api.h
Signed-off-by: bitliu <[email protected]>
1 parent b2e6b07 commit be61f13

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: proxy_wasm_api.h

+8
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,14 @@ inline WasmResult setBuffer(WasmBufferType type, size_t start, size_t length, st
905905
return result;
906906
}
907907

908+
inline WasmDataPtr getResponseBodyBufferBytes(size_t start, size_t length) {
909+
return getBufferBytes(WasmBufferType::HttpResponseBody, start, length);
910+
}
911+
912+
inline WasmDataPtr getRequestBodyBufferBytes(size_t start, size_t length) {
913+
return getBufferBytes(WasmBufferType::HttpRequestBody, start, length);
914+
}
915+
908916
// HTTP
909917

910918
inline void MakeHeaderStringPairsBuffer(const HeaderStringPairs &headers, void **buffer_ptr,

0 commit comments

Comments
 (0)