Skip to content

Commit 792c95a

Browse files
committed
review: include HTTP call in proxy_get_status.
Signed-off-by: Piotr Sikora <[email protected]>
1 parent 5e48db5 commit 792c95a

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

abi-versions/v0.2.1/README.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,27 @@ Returned `status` value is:
774774
- `BAD_ARGUMENT` for unknown `stream_type`.
775775

776776

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+
777798
## TCP/UDP/QUIC streams
778799

779800
> **Note**
@@ -1298,25 +1319,6 @@ Returned `status` value is:
12981319
- `NOT_FOUND` for unknown `call_or_stream_id`.
12991320

13001321

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-
13201322
### Callbacks exposed by the Wasm module
13211323

13221324
#### `proxy_on_grpc_receive_initial_metadata`

0 commit comments

Comments
 (0)