/Zephyr-latest/samples/net/sockets/http_server/src/ |
D | main.c | 71 const struct http_request_ctx *request_ctx, in echo_handler() argument 87 processed += request_ctx->data_len; in echo_handler() 90 request_ctx->data_len); in echo_handler() 91 LOG_HEXDUMP_DBG(request_ctx->data, request_ctx->data_len, print_str); in echo_handler() 99 response_ctx->body = request_ctx->data; in echo_handler() 100 response_ctx->body_len = request_ctx->data_len; in echo_handler() 116 const struct http_request_ctx *request_ctx, in uptime_handler() argument 175 const struct http_request_ctx *request_ctx, in led_handler() argument 181 LOG_DBG("LED handler status %d, size %zu", status, request_ctx->data_len); in led_handler() 188 if (request_ctx->data_len + cursor > sizeof(post_payload_buf)) { in led_handler() [all …]
|
/Zephyr-latest/tests/net/lib/http_server/core/src/ |
D | main.c | 250 const struct http_request_ctx *request_ctx, in dynamic_cb() argument 274 if (request_ctx->data_len + offset > sizeof(dynamic_payload)) { in dynamic_cb() 278 if (request_ctx->data_len > 0) { in dynamic_cb() 279 memcpy(dynamic_payload + offset, request_ctx->data, request_ctx->data_len); in dynamic_cb() 280 offset += request_ctx->data_len; in dynamic_cb() 320 const struct http_request_ctx *request_ctx, in dynamic_request_headers_cb() argument 328 if (request_ctx->header_count != 0) { in dynamic_request_headers_cb() 336 clone->count = request_ctx->header_count; in dynamic_request_headers_cb() 337 clone->status = request_ctx->headers_status; in dynamic_request_headers_cb() 339 hdrs_src = request_ctx->headers; in dynamic_request_headers_cb() [all …]
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_http1.c | 263 struct http_request_ctx request_ctx; in dynamic_get_del_req() local 273 populate_request_ctx(&request_ctx, ptr, len, &client->header_capture_ctx); in dynamic_get_del_req() 275 ret = dynamic_detail->cb(client, status, &request_ctx, &response_ctx, in dynamic_get_del_req() 307 struct http_request_ctx request_ctx; in dynamic_post_put_req() local 321 populate_request_ctx(&request_ctx, ptr, client->data_len, &client->header_capture_ctx); in dynamic_post_put_req() 323 ret = dynamic_detail->cb(client, status, &request_ctx, &response_ctx, in dynamic_post_put_req() 347 populate_request_ctx(&request_ctx, ptr, 0, &client->header_capture_ctx); in dynamic_post_put_req() 349 ret = dynamic_detail->cb(client, status, &request_ctx, &response_ctx, in dynamic_post_put_req()
|
D | http_server_http2.c | 566 struct http_request_ctx request_ctx; in dynamic_get_del_req_v2() local 580 populate_request_ctx(&request_ctx, ptr, len, &client->header_capture_ctx); in dynamic_get_del_req_v2() 582 ret = dynamic_detail->cb(client, status, &request_ctx, &response_ctx, in dynamic_get_del_req_v2() 619 struct http_request_ctx request_ctx; in dynamic_post_put_req_v2() local 649 populate_request_ctx(&request_ctx, ptr, data_len, request_headers_ctx); in dynamic_post_put_req_v2() 651 ret = dynamic_detail->cb(client, status, &request_ctx, &response_ctx, in dynamic_post_put_req_v2() 670 populate_request_ctx(&request_ctx, ptr, 0, request_headers_ctx); in dynamic_post_put_req_v2() 672 ret = dynamic_detail->cb(client, status, &request_ctx, &response_ctx, in dynamic_post_put_req_v2() 1388 struct http_request_ctx request_ctx; in handle_http_frame_headers_end_stream() local 1406 populate_request_ctx(&request_ctx, NULL, 0, NULL); in handle_http_frame_headers_end_stream() [all …]
|
D | http_server_core.c | 308 struct http_request_ctx request_ctx; in client_release_resources() local 335 populate_request_ctx(&request_ctx, NULL, 0, NULL); in client_release_resources() 337 dynamic_detail->cb(client, HTTP_SERVER_DATA_ABORTED, &request_ctx, in client_release_resources()
|
/Zephyr-latest/samples/net/prometheus/src/ |
D | stats.c | 36 const struct http_request_ctx *request_ctx, in stats_handler() argument
|
D | main.c | 46 const struct http_request_ctx *request_ctx, in dyn_handler() argument
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | http_server.rst | 234 const struct http_request_ctx *request_ctx, 250 processed += request_ctx->data_len; 253 http_method_str(method), request_ctx->data_len); 254 LOG_HEXDUMP_DBG(request_ctx->data, request_ctx->data_len, print_str); 262 response_ctx->body = request_ctx->data; 263 response_ctx->body_len = request_ctx->data_len; 299 The ``request_ctx`` parameter is used to pass request data to the application:
|
/Zephyr-latest/include/zephyr/net/http/ |
D | server.h | 221 const struct http_request_ctx *request_ctx,
|