Skip to content

Commit

Permalink
Update proxy_wasm_api.h
Browse files Browse the repository at this point in the history
Signed-off-by: bitliu <[email protected]>
  • Loading branch information
Xunzhuo committed Apr 22, 2021
1 parent b2e6b07 commit be61f13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions proxy_wasm_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,14 @@ inline WasmResult setBuffer(WasmBufferType type, size_t start, size_t length, st
return result;
}

inline WasmDataPtr getResponseBodyBufferBytes(size_t start, size_t length) {
return getBufferBytes(WasmBufferType::HttpResponseBody, start, length);
}

inline WasmDataPtr getRequestBodyBufferBytes(size_t start, size_t length) {
return getBufferBytes(WasmBufferType::HttpRequestBody, start, length);
}

// HTTP

inline void MakeHeaderStringPairsBuffer(const HeaderStringPairs &headers, void **buffer_ptr,
Expand Down

0 comments on commit be61f13

Please sign in to comment.