@@ -774,6 +774,27 @@ Returned `status` value is:
774
774
- ` BAD_ARGUMENT ` for unknown ` stream_type ` .
775
775
776
776
777
+ #### ` proxy_get_status `
778
+
779
+ * params:
780
+ - ` i32 (uint32_t *) return_status_code `
781
+ - ` i32 (const char **) return_status_message_data `
782
+ - ` i32 (size_t *) return_status_message_size `
783
+ * returns:
784
+ - ` i32 ( ` [ ` proxy_status_t ` ] ` ) status `
785
+
786
+ Retrieves status code (` return_status_code ` ) and status message
787
+ (` return_status_message_data ` , ` return_status_message_size ` ) of
788
+ the HTTP call when called from [ ` proxy_on_http_call_response ` ]
789
+ or gRPC stream or call when called from [ ` proxy_on_grpc_close ` ] .
790
+
791
+ Returned ` status ` value is:
792
+ - ` OK ` on success.
793
+ - ` INVALID_MEMORY_ACCESS ` when ` return_status_code ` ,
794
+ ` return_status_message_data ` and/or ` return_status_message_size `
795
+ point to invalid memory address.
796
+
797
+
777
798
## TCP/UDP/QUIC streams
778
799
779
800
> ** Note**
@@ -1298,25 +1319,6 @@ Returned `status` value is:
1298
1319
- ` NOT_FOUND ` for unknown ` call_or_stream_id ` .
1299
1320
1300
1321
1301
- #### ` proxy_get_status `
1302
-
1303
- * params:
1304
- - ` i32 (uint32_t *) return_status_code `
1305
- - ` i32 (const char **) return_status_message_data `
1306
- - ` i32 (size_t *) return_status_message_size `
1307
- * returns:
1308
- - ` i32 ( ` [ ` proxy_status_t ` ] ` ) status `
1309
-
1310
- Retrieves gRPC ` return_status_code ` and ` return_status_message `
1311
- when called from the [ ` proxy_on_grpc_close ` ] callback.
1312
-
1313
- Returned ` status ` value is:
1314
- - ` OK ` on success.
1315
- - ` INVALID_MEMORY_ACCESS ` when ` return_status_code ` ,
1316
- ` return_status_message_data ` and/or ` return_status_message_size `
1317
- point to invalid memory address.
1318
-
1319
-
1320
1322
### Callbacks exposed by the Wasm module
1321
1323
1322
1324
#### ` proxy_on_grpc_receive_initial_metadata `
0 commit comments