Soletta™ Framework
|
Progressive server response configuration. More...
#include <sol-http-server.h>
Data Fields | |
uint16_t | api_version |
api_version must match SOL_HTTP_REQUEST_INTERFACE_API_VERSION at runtime. More... | |
size_t | feed_size |
The output buffer size - 0 means unlimited data. More... | |
void(* | on_close )(void *data, const struct sol_http_progressive_response *progressive) |
Callback used to inform that the client has closed the connection. More... | |
void(* | on_feed_done )(void *data, struct sol_http_progressive_response *progressive, struct sol_blob *blob, int status) |
Callback used to inform that a struct sol_blob was sent. More... | |
const void * | user_data |
Progressive server response configuration.
uint16_t sol_http_server_progressive_config::api_version |
api_version must match SOL_HTTP_REQUEST_INTERFACE_API_VERSION at runtime.
Referenced by request_events_cb().
size_t sol_http_server_progressive_config::feed_size |
The output buffer size - 0 means unlimited data.
0
means unlimited data. Since sol_http_progressive_response_feed() works with blobs, no extra buffers will be allocated in order to store feed_size
bytes. All the blobs that are schedule to be written will be referenced and the sum of all queued blobs must not be equal or exceed feed_size
. If it happens sol_http_progressive_response_feed() will return -ENOSPC
and one must start to control the writing flow until on_feed_done
is called. void(* sol_http_server_progressive_config::on_close)(void *data, const struct sol_http_progressive_response *progressive) |
Callback used to inform that the client has closed the connection.
data | The user data |
progressive | The progressive response |
void(* sol_http_server_progressive_config::on_feed_done)(void *data, struct sol_http_progressive_response *progressive, struct sol_blob *blob, int status) |
Callback used to inform that a struct sol_blob was sent.
data | The user data |
progressive | The progressive response |
blob | The blob that was transferred |
const void* sol_http_server_progressive_config::user_data |