Lines Matching refs:http

228 			 * with http/2 prior knowledge.
305 if (wsi->http.proxy_clientside && wsi->parent &&
306 wsi->parent->http.buflist_post_body)
320 wsi->http.ah->parser_state = WSI_TOKEN_NAME_PART;
321 wsi->http.ah->lextable_pos = 0;
322 wsi->http.ah->unk_pos = 0;
324 wsi->http.ah->ues = URIES_IDLE;
337 if (wsi->http.proxy_clientside && wsi->parent &&
338 wsi->parent->http.buflist_post_body)
351 wsi->http.ah->parser_state = WSI_TOKEN_NAME_PART;
352 wsi->http.ah->lextable_pos = 0;
353 wsi->http.ah->unk_pos = 0;
402 while (wsi->http.ah->parser_state != WSI_PARSING_COMPLETE) {
438 (wsi->http.ah->parser_state ==
456 assert(wsi->http.ah->parser_state ==
468 if (wsi->http.ah->parser_state != WSI_PARSING_COMPLETE)
509 // if (wsi->http.ah && wsi->http.ah->http_response)
510 /* we're only judging if any (200, or 500 etc) http txn completed */
521 wsi->http.rx_content_length = 0;
531 if (wsi->http.ah) {
541 _lws_header_table_reset(wsi->http.ah);
544 if (!n || !wsi->http.ah)
555 wsi->http.ah->parser_state = WSI_TOKEN_NAME_PART;
556 wsi->http.ah->lextable_pos = 0;
557 wsi->http.ah->unk_pos = 0;
563 wsi->http.ah->ues = URIES_IDLE;
575 if (wsi->http.ah && wsi->http.ah->http_response)
576 return wsi->http.ah->http_response;
609 ah = wsi->http.ah;
611 /* we are being an http client...
634 wsi->http.ah = ah;
649 * http (non-ws) client will expect something like this
658 wsi->http.conn_type = HTTP_CONNECTION_KEEP_ALIVE;
670 wsi->http.conn_type = HTTP_CONNECTION_CLOSE;
700 !wsi->http.proxy_clientside &&
712 wsi->conmon.protocol_specific.http.response = n;
753 wsi->http.ah->frags[wsi->http.ah->frag_index[
846 if (wsi->http.conn_type == HTTP_CONNECTION_KEEP_ALIVE)
850 * Ugh... now the main http connection has seen
897 wsi->http.perform_rewrite = 0;
902 wsi->http.perform_rewrite = 0;
920 wsi->http.content_length_given = 0;
928 wsi->http.rx_content_length = (lws_filepos_t)atoll(simp);
931 wsi->http.rx_content_length);
932 wsi->http.rx_content_remain =
933 wsi->http.rx_content_length;
934 wsi->http.content_length_given = 1;
937 wsi->http.conn_type = HTTP_CONNECTION_CLOSE;
967 ah1 = wsi->http.ah;
968 wsi->http.ah = ah;
972 wsi->http.ah = ah1;
986 wsi->http.ah = ah1;
991 wsi->http.ah = ah1;
1003 !wsi->http.rx_content_length)
1007 * We can also get a case where it's http/1 and there's no
1073 wsi->http.multipart_boundary,
1074 sizeof(wsi->http.multipart_boundary));
1077 wsi->http.multipart_boundary);
1083 wsi->http.multipart = wsi->http.multipart_issue_boundary = 1;
1098 assert(wsi->http.multipart);
1103 wsi->http.multipart_boundary);
1115 wsi->http.multipart_boundary, name);
1181 * Sec-WebSocket-Origin: http://example.com
1217 "https" : "http",
1280 p += lws_snprintf(p, lws_ptr_diff_size_t(end, p), "Content-Length: %lu\x0d\x0a", wsi->http.writeable_len);
1362 if (wsi->http.ah &&
1363 wsi->http.ah->parser_state == WSI_PARSING_COMPLETE &&
1389 * so http client must deal with it
1483 if (wsi->http.rx_content_remain &&
1484 wsi->http.rx_content_remain < (unsigned int)*len)
1485 n = (int)wsi->http.rx_content_remain;
1495 if (wsi->http.perform_rewrite)
1496 lws_rewrite_parse(wsi->http.rw, (unsigned char *)*buf, n);
1503 !!wsi->http.proxy_clientside
1545 if (wsi->http.rx_content_length > 0)
1546 wsi->http.rx_content_remain -= (unsigned int)n;
1549 // wsi->http.rx_content_remain, wsi->http.rx_content_length,
1550 // wsi->http.content_length_given);
1552 if (wsi->http.rx_content_remain || !wsi->http.content_length_given)
1655 cisin[CIS_ALPN] = "h2,http/1.1";
1657 cisin[CIS_ALPN] = "http/1.1";