| /mOS-networking-stack/samples/lighttpd-1.4.32/src/ |
| H A D | http_chunk.c | 61 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) { in http_chunk_append_file() 67 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED && len > 0) { in http_chunk_append_file() 81 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) { in http_chunk_append_buffer() 87 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED && mem->used > 0) { in http_chunk_append_buffer() 102 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) { in http_chunk_append_mem() 110 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) { in http_chunk_append_mem() 116 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) { in http_chunk_append_mem()
|
| H A D | mod_proxy.c | 99 buffer *response; member 126 hctx->response = buffer_init(); in handler_ctx_init() 138 buffer_free(hctx->response); in handler_ctx_free() 673 hctx->response->used = 1; in proxy_demux_response() 678 if (-1 == (r = read(hctx->fd, hctx->response->ptr + hctx->response->used - 1, b))) { in proxy_demux_response() 689 hctx->response->used += r; in proxy_demux_response() 690 hctx->response->ptr[hctx->response->used - 1] = '\0'; in proxy_demux_response() 694 "demux: Response buffer len", hctx->response->used, ":", hctx->response, ":"); in proxy_demux_response() 728 hctx->response->used = 0; in proxy_demux_response() 732 http_chunk_append_mem(srv, con, hctx->response->ptr, hctx->response->used); in proxy_demux_response() [all …]
|
| H A D | mod_cgi.c | 81 buffer *response; member 90 hctx->response = buffer_init(); in cgi_handler_ctx_init() 97 buffer_free(hctx->response); in cgi_handler_ctx_free() 318 con->response.content_length = strtol(value, NULL, 10); in cgi_response_parse() 347 buffer_prepare_copy(hctx->response, 4 * 1024); in cgi_demux_response() 350 buffer_prepare_copy(hctx->response, 4 * 1024); in cgi_demux_response() 353 buffer_prepare_copy(hctx->response, toread + 1); in cgi_demux_response() 357 if (-1 == (n = read(hctx->fd, hctx->response->ptr, hctx->response->size - 1))) { in cgi_demux_response() 379 hctx->response->ptr[n] = '\0'; in cgi_demux_response() 380 hctx->response->used = n+1; in cgi_demux_response() [all …]
|
| H A D | mod_staticfile.c | 171 con->response.content_length = 0; in http_response_parse_range() 173 if (NULL != (ds = (data_string *)array_get_element(con->response.headers, "Content-Type"))) { in http_response_parse_range() 309 con->response.content_length += b->used - 1; in http_response_parse_range() 314 con->response.content_length += end - start + 1; in http_response_parse_range() 331 con->response.content_length += b->used - 1; in http_response_parse_range() 451 if (NULL == array_get_element(con->response.headers, "Content-Type")) { in URIHANDLER_FUNC() 473 if (NULL == array_get_element(con->response.headers, "ETag")) { in URIHANDLER_FUNC() 482 if (NULL == (ds = (data_string *)array_get_element(con->response.headers, "Last-Modified"))) { in URIHANDLER_FUNC()
|
| H A D | request.c | 351 con->response.keep_alive = 0; in http_request_parse() 371 con->response.keep_alive = 0; in http_request_parse() 531 con->response.keep_alive = 0; in http_request_parse() 552 con->response.keep_alive = 0; in http_request_parse() 620 con->response.keep_alive = 0; in http_request_parse() 664 con->response.keep_alive = 0; in http_request_parse() 693 con->response.keep_alive = 0; in http_request_parse() 730 con->response.keep_alive = 0; in http_request_parse() 1043 con->response.keep_alive = 0; in http_request_parse() 1086 con->response.keep_alive = 0; in http_request_parse() [all …]
|
| H A D | http-header-glue.c | 80 if (NULL == (ds = (data_string *)array_get_unused_element(con->response.headers, TYPE_STRING))) { in response_header_insert() 86 array_insert_unique(con->response.headers, (data_unset *)ds); in response_header_insert() 97 if (NULL != (ds = (data_string *)array_get_element(con->response.headers, key))) { in response_header_overwrite() 112 if (NULL != (ds = (data_string *)array_get_element(con->response.headers, key))) { in response_header_append()
|
| H A D | connections.c | 458 con->response.transfer_encoding &= ~HTTP_TRANSFER_ENCODING_CHUNKED; 492 con->response.transfer_encoding &= ~HTTP_TRANSFER_ENCODING_CHUNKED; 567 (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) == 0) { 620 if (con->keep_alive && !con->response.keep_alive) { 634 con->response.transfer_encoding &= ~HTTP_TRANSFER_ENCODING_CHUNKED; 727 con->response.headers = array_init(); 753 array_free(con->response.headers); 823 con->response.keep_alive = 0; 824 con->response.content_length = -1; 825 con->response.transfer_encoding = 0; [all …]
|
| H A D | mod_scgi.c | 296 buffer *response; member 358 hctx->response = buffer_init(); in handler_ctx_init() 378 buffer_free(hctx->response); in handler_ctx_free() 1744 array_insert_unique(con->response.headers, (data_unset *)ds); in scgi_response_parse() 1771 con->response.content_length = strtol(value, NULL, 10); in scgi_response_parse() 1798 buffer_prepare_copy(hctx->response, 1024); in scgi_demux_response() 1799 if (-1 == (n = read(hctx->fd, hctx->response->ptr, hctx->response->size - 1))) { in scgi_demux_response() 1821 hctx->response->ptr[n] = '\0'; in scgi_demux_response() 1822 hctx->response->used = n+1; in scgi_demux_response() 1911 if ((hctx->response->used != hlen) && blen > 0) { in scgi_demux_response() [all …]
|
| H A D | base.h | 193 } response; typedef 416 response response; member
|
| H A D | mod_usertrack.c | 210 if (NULL == (ds = (data_string *)array_get_unused_element(con->response.headers, TYPE_STRING))) { in URIHANDLER_FUNC() 248 array_insert_unique(con->response.headers, (data_unset *)ds); in URIHANDLER_FUNC()
|
| /mOS-networking-stack/samples/lighttpd-1.4.32/doc/outdated/ |
| H A D | setenv.txt | 33 setenv.add-response-header 34 adds a header to the HTTP response sent to the client
|
| H A D | state.txt | 46 prepare response header 48 write response-header + content to network 68 HTTP-response header. In the 'write' state the prepare content is sent out 89 for the response of the first request). This is handled transparently by
|
| H A D | accesslog.txt | 77 %o `response header`_ 113 The prefix ``X-LIGHTTPD-`` is special as every response header starting with
|
| /mOS-networking-stack/util/ |
| H A D | http_parsing.c | 76 http_header_long_val(const char * response, const char* key, int key_len) in http_header_long_val() argument 81 char *temp = http_header_str_val(response, key, key_len, value, C_TYPE_LEN); in http_header_long_val()
|
| /mOS-networking-stack/samples/epserver/ |
| H A D | epserver-mp.c | 178 char response[HTTP_HEADER_LEN]; in HandleReadEvent() local 241 sprintf(response, "HTTP/1.1 %d %s\r\n" in HandleReadEvent() 247 len = strlen(response); in HandleReadEvent() 248 TRACE_APP("Socket %d HTTP Response: \n%s", sockid, response); in HandleReadEvent() 249 sent = mtcp_write(ctx->mctx, sockid, response, len); in HandleReadEvent()
|
| H A D | epserver.c | 179 char response[HTTP_HEADER_LEN]; in HandleReadEvent() local 242 sprintf(response, "HTTP/1.1 %d %s\r\n" in HandleReadEvent() 248 len = strlen(response); in HandleReadEvent() 249 TRACE_APP("Socket %d HTTP Response: \n%s", sockid, response); in HandleReadEvent() 250 sent = mtcp_write(ctx->mctx, sockid, response, len); in HandleReadEvent()
|
| /mOS-networking-stack/samples/lighttpd-1.4.32/tests/ |
| H A D | lighttpd.conf | 3 debug.log-response-header = "enable" 79 setenv.add-response-header = ( "BAR" => "foo")
|
| H A D | 404-handler.conf | 2 debug.log-response-header = "enable"
|
| H A D | mod-compress.conf | 2 debug.log-response-header = "disable"
|
| H A D | fastcgi-auth.conf | 4 debug.log-response-header = "enable"
|
| H A D | fastcgi-13.conf | 4 debug.log-response-header = "enable"
|
| H A D | bug-12.conf | 87 setenv.add-response-header = ( "BAR" => "foo")
|
| /mOS-networking-stack/samples/epwget/ |
| H A D | epwget.c | 118 char response[HTTP_HEADER_LEN]; member 394 memcpy(wv->response + wv->resp_len, buf, copy_len); in HandleReadEvent() 396 wv->header_len = find_http_header(wv->response, wv->resp_len); in HandleReadEvent() 398 wv->response[wv->header_len] = '\0'; in HandleReadEvent() 399 wv->file_len = http_header_long_val(wv->response, in HandleReadEvent()
|
| H A D | epwget-mp.c | 117 char response[HTTP_HEADER_LEN]; member 393 memcpy(wv->response + wv->resp_len, buf, copy_len); in HandleReadEvent() 395 wv->header_len = find_http_header(wv->response, wv->resp_len); in HandleReadEvent() 397 wv->response[wv->header_len] = '\0'; in HandleReadEvent() 398 wv->file_len = http_header_long_val(wv->response, in HandleReadEvent()
|
| /mOS-networking-stack/util/include/ |
| H A D | http_parsing.h | 25 int http_get_status_code(void *response);
|