HTTP/2 integration for csilk.
More...
Go to the source code of this file.
|
| int | csilk_h2_init_session (csilk_client_t *client) |
| | Initialize HTTP/2 session for a client connection.
|
| |
| int | csilk_h2_process_data (csilk_client_t *client, const uint8_t *data, size_t len) |
| | Process incoming HTTP/2 data.
|
| |
| csilk_ctx_t * | csilk_h2_get_or_create_stream (csilk_client_t *client, int32_t stream_id) |
| | Get an existing stream context or create a new one.
|
| |
| void | csilk_h2_free_streams (csilk_client_t *client) |
| | Free all active HTTP/2 stream contexts for a client.
|
| |
HTTP/2 integration for csilk.
- Copyright
- MIT License
◆ csilk_h2_free_streams()
| void csilk_h2_free_streams |
( |
csilk_client_t * |
client | ) |
|
Free all active HTTP/2 stream contexts for a client.
- Parameters
-
| client | The client connection. |
◆ csilk_h2_get_or_create_stream()
| csilk_ctx_t * csilk_h2_get_or_create_stream |
( |
csilk_client_t * |
client, |
|
|
int32_t |
stream_id |
|
) |
| |
Get an existing stream context or create a new one.
- Parameters
-
| client | The client connection. |
| stream_id | The HTTP/2 stream ID. |
- Returns
- Pointer to the context, or NULL on failure.
◆ csilk_h2_init_session()
| int csilk_h2_init_session |
( |
csilk_client_t * |
client | ) |
|
Initialize HTTP/2 session for a client connection.
- Parameters
-
| client | The client connection. |
- Returns
- 0 on success, < 0 on failure.
◆ csilk_h2_process_data()
| int csilk_h2_process_data |
( |
csilk_client_t * |
client, |
|
|
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
Process incoming HTTP/2 data.
- Parameters
-
| client | The client connection. |
| data | The incoming data buffer. |
| len | The length of the incoming data. |
- Returns
- 0 on success, < 0 on failure.