Lines Matching refs:http_response
50 char http_response[sizeof(RESPONSE_TEMPLATE) + in handle_http1_static_resource() local
65 snprintk(http_response, sizeof(http_response), in handle_http1_static_resource()
72 snprintk(http_response, sizeof(http_response), in handle_http1_static_resource()
80 ret = http_server_sendall(client, http_response, in handle_http1_static_resource()
81 strlen(http_response)); in handle_http1_static_resource()
100 char http_response[sizeof(_template) + \
105 snprintk(http_response, sizeof(http_response), \
110 ret = http_server_sendall(client, http_response, \
111 strnlen(http_response, \
112 sizeof(http_response) - 1)); \
125 char http_response[MAX(sizeof(RESPONSE_TEMPLATE_DYNAMIC_PART1) + sizeof("xxx"), in http1_send_headers() local
139 snprintk(http_response, sizeof(http_response), RESPONSE_TEMPLATE_DYNAMIC_PART1, status); in http1_send_headers()
141 ret = http_server_sendall(client, http_response, in http1_send_headers()
142 strnlen(http_response, sizeof(http_response) - 1)); in http1_send_headers()
161 snprintk(http_response, sizeof(http_response), "%s: ", hdr->name); in http1_send_headers()
163 ret = http_server_sendall(client, http_response, in http1_send_headers()
164 strnlen(http_response, sizeof(http_response) - 1)); in http1_send_headers()
191 snprintk(http_response, sizeof(http_response), "Content-Type: %s\r\n", in http1_send_headers()
194 ret = http_server_sendall(client, http_response, in http1_send_headers()
195 strnlen(http_response, sizeof(http_response) - 1)); in http1_send_headers()
405 char http_response[sizeof(RESPONSE_TEMPLATE_STATIC_FS) + HTTP_SERVER_MAX_CONTENT_TYPE_LEN + in handle_http1_static_fs_resource() local
452 len = snprintk(http_response, sizeof(http_response), RESPONSE_TEMPLATE_STATIC_FS, in handle_http1_static_fs_resource()
454 ret = http_server_sendall(client, http_response, len); in handle_http1_static_fs_resource()
462 len = fs_read(&file, http_response, sizeof(http_response)); in handle_http1_static_fs_resource()
468 ret = http_server_sendall(client, http_response, len); in handle_http1_static_fs_resource()