proxy-wasm-cpp-sdk
proxy-wasm-cpp-sdk copied to clipboard
Can Call onRequestTrailers() and onResponseTrailers unconditionally???
Hi Expert, If there is no Trailer in Request/Response, then I have no chance to add Trailer when after processing Request/Response. Is it possible call those two API onRequestTrailers() and onResponseTrailers unconditionally? if there is Not anything to do, then it can return Continue directly.
thanks Cliff
You can add trailers from the request/response body callbacks (e.g. upon receiving end_of_stream=True
, which implies that there are no trailers).