/Zephyr-latest/samples/net/prometheus/src/ |
D | stats.c | 37 struct http_response_ctx *response_ctx, void *user_data) in stats_handler() argument 57 response_ctx->body = prom_buffer; in stats_handler() 58 response_ctx->body_len = strlen(prom_buffer); in stats_handler() 61 response_ctx->final_chunk = true; in stats_handler()
|
D | main.c | 47 struct http_response_ctx *response_ctx, void *user_data) in dyn_handler() argument 68 response_ctx->body = prom_buffer; in dyn_handler() 69 response_ctx->body_len = strlen(prom_buffer); in dyn_handler() 70 response_ctx->final_chunk = true; in dyn_handler()
|
/Zephyr-latest/samples/net/sockets/http_server/src/ |
D | main.c | 72 struct http_response_ctx *response_ctx, void *user_data) in echo_handler() argument 99 response_ctx->body = request_ctx->data; in echo_handler() 100 response_ctx->body_len = request_ctx->data_len; in echo_handler() 101 response_ctx->final_chunk = (status == HTTP_SERVER_DATA_FINAL); in echo_handler() 117 struct http_response_ctx *response_ctx, void *user_data) in uptime_handler() argument 134 response_ctx->body = uptime_buf; in uptime_handler() 135 response_ctx->body_len = ret; in uptime_handler() 136 response_ctx->final_chunk = true; in uptime_handler() 176 struct http_response_ctx *response_ctx, void *user_data) in led_handler() argument
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_http1.c | 264 struct http_response_ctx response_ctx; in dynamic_get_del_req() local 272 memset(&response_ctx, 0, sizeof(response_ctx)); in dynamic_get_del_req() 275 ret = dynamic_detail->cb(client, status, &request_ctx, &response_ctx, in dynamic_get_del_req() 281 ret = http1_dynamic_response(client, &response_ctx, dynamic_detail); in dynamic_get_del_req() 288 } while (!http_response_is_final(&response_ctx, status)); in dynamic_get_del_req() 308 struct http_response_ctx response_ctx; in dynamic_post_put_req() local 320 memset(&response_ctx, 0, sizeof(response_ctx)); in dynamic_post_put_req() 323 ret = dynamic_detail->cb(client, status, &request_ctx, &response_ctx, in dynamic_post_put_req() 337 if (http_response_is_provided(&response_ctx)) { in dynamic_post_put_req() 338 ret = http1_dynamic_response(client, &response_ctx, dynamic_detail); in dynamic_post_put_req() [all …]
|
D | http_server_http2.c | 567 struct http_response_ctx response_ctx; in dynamic_get_del_req_v2() local 579 memset(&response_ctx, 0, sizeof(response_ctx)); in dynamic_get_del_req_v2() 582 ret = dynamic_detail->cb(client, status, &request_ctx, &response_ctx, in dynamic_get_del_req_v2() 588 ret = http2_dynamic_response(client, frame, &response_ctx, status, dynamic_detail); in dynamic_get_del_req_v2() 595 } while (!http_response_is_final(&response_ctx, status)); in dynamic_get_del_req_v2() 620 struct http_response_ctx response_ctx; in dynamic_post_put_req_v2() local 648 memset(&response_ctx, 0, sizeof(response_ctx)); in dynamic_post_put_req_v2() 651 ret = dynamic_detail->cb(client, status, &request_ctx, &response_ctx, in dynamic_post_put_req_v2() 660 if (http_response_is_provided(&response_ctx)) { in dynamic_post_put_req_v2() 661 ret = http2_dynamic_response(client, frame, &response_ctx, status, dynamic_detail); in dynamic_post_put_req_v2() [all …]
|
D | http_server_core.c | 309 struct http_response_ctx response_ctx; in client_release_resources() local 338 &response_ctx, dynamic_detail->user_data); in client_release_resources()
|
/Zephyr-latest/tests/net/lib/http_server/core/src/ |
D | main.c | 251 struct http_response_ctx *response_ctx, void *user_data) in dynamic_cb() argument 262 response_ctx->body = dynamic_payload; in dynamic_cb() 263 response_ctx->body_len = dynamic_payload_len; in dynamic_cb() 264 response_ctx->final_chunk = true; in dynamic_cb() 267 response_ctx->body = NULL; in dynamic_cb() 268 response_ctx->body_len = 0; in dynamic_cb() 269 response_ctx->final_chunk = true; in dynamic_cb() 321 struct http_response_ctx *response_ctx, void *user_data) in dynamic_request_headers_cb() argument 419 struct http_response_ctx *response_ctx, void *user_data) in dynamic_response_headers_cb() argument 445 response_ctx->status = 422; in dynamic_response_headers_cb() [all …]
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | http_server.rst | 235 struct http_response_ctx *response_ctx, void *user_data) 262 response_ctx->body = request_ctx->data; 263 response_ctx->body_len = request_ctx->data_len; 264 response_ctx->final_chunk = (status == HTTP_SERVER_DATA_FINAL); 307 The ``response_ctx`` field is used by the application to pass response data to 324 ``response_ctx``, after which only further body data is allowed in subsequent
|
/Zephyr-latest/include/zephyr/net/http/ |
D | server.h | 222 struct http_response_ctx *response_ctx,
|