Home
last modified time | relevance | path

Searched refs:body_len (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/samples/net/prometheus/src/
Dstats.c58 response_ctx->body_len = strlen(prom_buffer); in stats_handler()
Dmain.c69 response_ctx->body_len = strlen(prom_buffer); in dyn_handler()
/Zephyr-latest/samples/net/sockets/http_server/src/
Dmain.c100 response_ctx->body_len = request_ctx->data_len; in echo_handler()
135 response_ctx->body_len = ret; in uptime_handler()
/Zephyr-latest/subsys/mgmt/hawkbit/
Dhawkbit.c876 size_t body_len; in response_json_cb() local
886 body_len = rsp->body_frag_len; in response_json_cb()
888 if ((hb_context->dl.downloaded_size + body_len) > in response_json_cb()
891 hb_context->dl.downloaded_size + body_len; in response_json_cb()
903 body_data, body_len); in response_json_cb()
904 hb_context->dl.downloaded_size += body_len; in response_json_cb()
943 size_t body_len; in response_download_cb() local
961 body_len = rsp->body_frag_len; in response_download_cb()
963 ret = flash_img_buffered_write(&hb_context->flash_ctx, body_data, body_len, in response_download_cb()
/Zephyr-latest/include/zephyr/net/http/
Dserver.h211 size_t body_len; /**< Length of body data */ member
/Zephyr-latest/subsys/net/l2/ethernet/
Dethernet.c258 size_t body_len; in ethernet_recv() local
382 body_len = net_pkt_get_len(pkt); in ethernet_recv()
425 ethernet_update_rx_stats(iface, body_len + hdr_len, dst_broadcast, dst_eth_multicast); in ethernet_recv()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_http1.c322 if (rsp->body != NULL && rsp->body_len > 0) { in http1_dynamic_response()
323 ret = snprintk(tmp, sizeof(tmp), "%zx\r\n", rsp->body_len); in http1_dynamic_response()
329 ret = http_server_sendall(client, rsp->body, rsp->body_len); in http1_dynamic_response()
Dhttp_server_core.c896 (rsp->status == 0 && rsp->header_count == 0 && rsp->body_len == 0)) { in http_response_is_final()
905 if (rsp->status != 0 || rsp->header_count > 0 || rsp->body_len > 0) { in http_response_is_provided()
Dhttp_server_http2.c589 if (final_response && rsp->body_len == 0) { in http2_dynamic_response()
603 if (rsp->body != NULL && rsp->body_len > 0) { in http2_dynamic_response()
609 ret = send_data_frame(client, rsp->body, rsp->body_len, frame->stream_identifier, in http2_dynamic_response()
/Zephyr-latest/doc/connectivity/networking/api/
Dhttp_server.rst147 response_ctx->body_len = sizeof(response_404) - 1;
306 response_ctx->body_len = request_ctx->data_len;
361 * The ``body`` and ``body_len`` fields are used to send body data.
/Zephyr-latest/tests/net/lib/http_server/core/src/
Dmain.c275 response_ctx->body_len = dynamic_payload_len; in dynamic_cb()
280 response_ctx->body_len = 0; in dynamic_cb()
482 response_ctx->body_len = strlen(response_ctx->body); in dynamic_response_headers_cb()
492 response_ctx->body_len = strlen(response_ctx->body); in dynamic_response_headers_cb()
503 response_ctx->body_len = send_len; in dynamic_response_headers_cb()