Lines Matching refs:http

68 		if (!wsi->http.ah) {
113 wsi->http.rx_content_remain =
114 wsi->http.rx_content_length;
115 if (wsi->http.rx_content_remain)
128 lwsl_info("%s: http post body: cl set %d, remain %d, len %d\n", __func__,
129 (int)wsi->http.content_length_given,
130 (int)wsi->http.rx_content_remain, (int)len);
132 if (wsi->http.content_length_given && !wsi->http.rx_content_remain)
135 while (len && (!wsi->http.content_length_given || wsi->http.rx_content_remain)) {
140 if (wsi->http.content_length_given)
141 body_chunk_len = min(wsi->http.rx_content_remain, len);
144 wsi->http.rx_content_remain -= body_chunk_len;
147 if (wsi->http.cgi) {
151 args.stdwsi = &wsi->http.cgi->lsp->stdwsi[0];
181 if (lwsi_role_h2(wsi) && !wsi->http.content_length_given) {
199 if (wsi->http.rx_content_remain) {
212 if (wsi->http.cgi)
219 if (!wsi->http.cgi)
376 if (!wsi->http.ah && lws_header_table_attach(wsi, 0)) {
458 * during the parsing our role changed to something non-http,
462 if (wsi->http.ah &&
489 /* this handles POLLOUT for http serving fragments */
586 if (wsi->http.cgi && (pollfd->revents & LWS_POLLOUT)) {
597 if (wsi->http.comp_ctx.buflist_comp ||
598 wsi->http.comp_ctx.may_have_more) {
602 __func__, wsi->http.comp_ctx.buflist_comp,
603 wsi->http.comp_ctx.may_have_more
614 if (!wsi->http.comp_ctx.buflist_comp &&
615 !wsi->http.comp_ctx.may_have_more &&
616 wsi->http.deferred_transaction_completed) {
617 wsi->http.deferred_transaction_completed = 0;
720 if (wsi->http.proxy_clientside) {
723 &wsi->parent->http.buflist_post_body, &buf);
734 (int)wsi->http.tx_content_length,
735 (int)wsi->http.tx_content_remain,
736 (int)wsi->http.rx_content_length,
737 (int)wsi->http.rx_content_remain
747 lws_buflist_use_segment(&wsi->parent->http.buflist_post_body, len);
751 if (wsi->parent->http.buflist_post_body) {
759 wsi->http.ah->parser_state = WSI_TOKEN_NAME_PART;
760 wsi->http.ah->lextable_pos = 0;
762 wsi->http.ah->unk_pos = 0;
789 if (wsi->http.lcs && (((*wp) & 0x1f) == LWS_WRITE_HTTP_FINAL ||
807 (int)o, (int)*wp, wsi->http.comp_ctx.may_have_more);
812 if (wsi->http.comp_ctx.chunking) {
815 * this only needs dealing with on http/1.1 to allow
857 * If alpn asserts it is http/1.1, server support for KA is
880 ah = pt->http.ah_list;
888 pt->http.ah_count_in_use--;
937 lwsl_info("http/2 prior knowledge\n");
983 * If we stay in http, assuming there wasn't already-set
993 * For ws, default to http/1.1 only. If i->alpn had been set
1003 wsi->stash->cis[CIS_ALPN] = "http/1.1";
1048 /* if a recognized http method, bind to it */
1073 if (!wsi->http.proxy_clientside)
1076 wsi->http.proxy_clientside = 0;
1128 /* alpn id */ "http/1.1",