@@ -832,7 +832,12 @@ Plugin must return one of the following values:
832
832
* returns:
833
833
- ` i32 ( ` [ ` proxy_action_t ` ] ` ) action `
834
834
835
- Called for each data chunk received from downstream.
835
+ Called for each data chunk received from downstream,
836
+ even when the processing is paused.
837
+
838
+ ` data_size ` represents total available size of the data that can be
839
+ retrieved, and its value will increment if the processing is paused
840
+ and data is buffered by the host and not forwarded upstream.
836
841
837
842
Data (of ` data_size ` ) can be retrieved and/or modified using
838
843
[ ` proxy_get_buffer_bytes ` ] and/or [ ` proxy_set_buffer_bytes ` ]
@@ -867,7 +872,12 @@ Called when downstream connection is closed.
867
872
* returns:
868
873
- ` i32 ( ` [ ` proxy_action_t ` ] ` ) action `
869
874
870
- Called for each data chunk received from upstream.
875
+ Called for each data chunk received from upstream,
876
+ even when the processing is paused.
877
+
878
+ ` data_size ` represents total available size of the data that can be
879
+ retrieved, and its value will increment if the processing is paused
880
+ and data is buffered by the host and not forwarded downstream.
871
881
872
882
Data (of ` data_size ` ) can be retrieved and/or modified using
873
883
[ ` proxy_get_buffer_bytes ` ] and/or [ ` proxy_set_buffer_bytes ` ]
@@ -942,12 +952,17 @@ Plugin must return one of the following values:
942
952
* returns:
943
953
- ` i32 ( ` [ ` proxy_action_t ` ] ` ) action `
944
954
945
- Called for each chunk of HTTP request body received from downstream.
955
+ Called for each chunk of HTTP request body received from downstream,
956
+ even when the processing is paused.
946
957
947
958
Request body chunk (of ` body_size ` ) can be retrieved and/or modified
948
959
using [ ` proxy_get_buffer_bytes ` ] and/or [ ` proxy_set_buffer_bytes ` ]
949
960
with ` buffer_id ` set to ` HTTP_REQUEST_BODY ` .
950
961
962
+ ` body_size ` represents total available size of the body that can be
963
+ retrieved, and its value will increment if the processing is paused
964
+ and the body is buffered by the host and not forwarded upstream.
965
+
951
966
Paused HTTP request can be resumed using [ ` proxy_continue_stream ` ]
952
967
or closed using [ ` proxy_close_stream ` ] with ` stream_type ` set to
953
968
` HTTP_REQUEST ` .
@@ -1032,12 +1047,17 @@ Plugin must return one of the following values:
1032
1047
* returns:
1033
1048
- ` i32 ( ` [ ` proxy_action_t ` ] ` ) action `
1034
1049
1035
- Called for each chunk of HTTP response body received from upstream.
1050
+ Called for each chunk of HTTP response body received from upstream,
1051
+ even when the processing is paused.
1036
1052
1037
1053
Response body chunk (of ` body_size ` ) can be retrieved and/or modified
1038
1054
using [ ` proxy_get_buffer_bytes ` ] and/or [ ` proxy_set_buffer_bytes ` ]
1039
1055
with ` buffer_id ` set to ` HTTP_RESPONSE_BODY ` .
1040
1056
1057
+ ` body_size ` represents total available size of the body that can be
1058
+ retrieved, and its value will increment if the processing is paused
1059
+ and the body is buffered by the host and not forwarded downstream.
1060
+
1041
1061
Paused HTTP response can be resumed using [ ` proxy_continue_stream ` ]
1042
1062
or closed using [ ` proxy_close_stream ` ] with ` stream_type ` set to
1043
1063
` HTTP_RESPONSE ` .
0 commit comments