mirror of
https://github.com/alibaba/higress.git
synced 2026-06-04 01:57:26 +08:00
feat: add buffer_limit functions (#1922)
Co-authored-by: 纪卓志 <jizhuozhi.george@gmail.com> Co-authored-by: 007gzs <007gzs@gmail.com>
This commit is contained in:
@@ -143,6 +143,24 @@ where
|
||||
self.set_http_response_body(0, i32::MAX as usize, body)
|
||||
}
|
||||
|
||||
fn set_request_body_buffer_limit(&self, limit: u32) {
|
||||
self.log()
|
||||
.infof(format_args!("SetRequestBodyBufferLimit:{}", limit));
|
||||
self.set_property(
|
||||
vec!["set_decoder_buffer_limit"],
|
||||
Some(limit.to_string().as_bytes()),
|
||||
);
|
||||
}
|
||||
|
||||
fn set_response_body_buffer_limit(&self, limit: u32) {
|
||||
self.log()
|
||||
.infof(format_args!("SetResponseBodyBufferLimit:{}", limit));
|
||||
self.set_property(
|
||||
vec!["set_encoder_buffer_limit"],
|
||||
Some(limit.to_string().as_bytes()),
|
||||
);
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn http_call(
|
||||
&mut self,
|
||||
|
||||
Reference in New Issue
Block a user