Home
last modified time | relevance | path

Searched refs:content_len (Results 1 – 12 of 12) sorted by relevance

/hal_espressif-3.4.0/components/protocomm/src/transports/
Dprotocomm_httpd.c119 if (req->content_len <= 0) { in common_post_handler()
123 } else if (req->content_len > MAX_REQ_BODY_LEN) { in common_post_handler()
129 req_body = (char *) malloc(req->content_len); in common_post_handler()
131 ESP_LOGE(TAG, "Unable to allocate for request length %d", req->content_len); in common_post_handler()
137 while (recv_size < req->content_len) { in common_post_handler()
138 ret = httpd_req_recv(req, req_body + recv_size, req->content_len - recv_size); in common_post_handler()
/hal_espressif-3.4.0/examples/protocols/http_server/advanced_tests/main/
Dtests.c140 ESP_LOGI(TAG, "/echo handler read content length %d", req->content_len); in echo_post_handler()
142 char* buf = malloc(req->content_len + 1); in echo_post_handler()
147 ESP_LOGE(TAG, "Failed to allocate memory of %d bytes!", req->content_len + 1); in echo_post_handler()
152 while (off < req->content_len) { in echo_post_handler()
154 ret = httpd_req_recv(req, buf + off, req->content_len - off); in echo_post_handler()
167 if (req->content_len < 128) { in echo_post_handler()
187 httpd_resp_send(req, buf, req->content_len); in echo_post_handler()
/hal_espressif-3.4.0/docs/zh_CN/api-reference/protocols/
Desp_http_server.rst35 * 对于字符串数据,null 终止符会被省略,content_len 会给出字符串的长度 */
39 size_t recv_size = MIN(req->content_len, sizeof(content));
/hal_espressif-3.4.0/tools/ci/python_packages/idf_http_server_test/
Dtest.py156 self.content_len = 0
225 self.content_len = int(line_comp[1])
242 while len(read_data) != self.content_len:
243 read_data += self.client.recv(self.content_len).decode()
256 self.content_len += chunk_len
768 content_len = 2**30
769 …(('POST /echo HTTP/1.1\r\nHost: ' + dut + '\r\nContent-Length: ' + str(content_len) + '\r\n\r\nABC…
/hal_espressif-3.4.0/examples/protocols/http_server/advanced_tests/scripts/
Dtest.py167 self.content_len = 0
236 self.content_len = int(line_comp[1])
253 while len(read_data) != self.content_len:
254 read_data += self.client.recv(self.content_len).decode()
267 self.content_len += chunk_len
779 content_len = 2**30
780 …(('POST /echo HTTP/1.1\r\nHost: ' + dut + '\r\nContent-Length: ' + str(content_len) + '\r\n\r\nABC…
/hal_espressif-3.4.0/examples/protocols/http_server/file_serving/main/
Dfile_server.c319 if (req->content_len > MAX_FILE_SIZE) { in upload_post_handler()
320 ESP_LOGE(TAG, "File too large : %d bytes", req->content_len); in upload_post_handler()
346 int remaining = req->content_len; in upload_post_handler()
/hal_espressif-3.4.0/components/esp_http_server/src/
Dhttpd_parse.c363 r->content_len = ((int)parser->content_length != -1 ? in cb_headers_complete()
367 ESP_LOGD(TAG, LOG_FMT("content length = %zu"), r->content_len); in cb_headers_complete()
402 ra->remaining_len = r->content_len; in cb_headers_complete()
667 r->content_len = 0; in init_req()
/hal_espressif-3.4.0/components/partition_table/
Dparttool.py178 content_len = len(input_file.read())
180 if content_len > partition.size:
/hal_espressif-3.4.0/examples/protocols/http_server/restful_server/main/
Drest_server.c111 int total_len = req->content_len; in light_brightness_post_handler()
/hal_espressif-3.4.0/components/esp_http_server/include/
Desp_http_server.h328 size_t content_len; /*!< Length of the request body */ member
/hal_espressif-3.4.0/examples/protocols/http_server/simple/main/
Dmain.c236 int ret, remaining = req->content_len; in echo_post_handler()
/hal_espressif-3.4.0/docs/en/api-reference/protocols/
Desp_http_server.rst41 size_t recv_size = MIN(req->content_len, sizeof(content));