Lines Matching refs:httpread
2 * httpread - Manage reading file(s) from HTTP/TCP socket
39 #include "httpread.h"
60 struct httpread {
63 void (*cb)(struct httpread *handle, void *cookie,
152 void httpread_destroy(struct httpread *h)
177 struct httpread *h = user_ctx;
178 wpa_printf(MSG_DEBUG, "httpread timeout (%p)", h);
188 struct httpread *h,
224 static int httpread_hdr_analyze(struct httpread *h)
397 struct httpread *h = sock_ctx;
420 wpa_printf(MSG_DEBUG, "httpread premature eof(%p)", h);
426 "httpread premature eof(%p) %d/%d",
436 wpa_printf(MSG_DEBUG, "httpread ok eof(%p)", h);
473 wpa_printf(MSG_DEBUG, "httpread bad hdr(%p)", h);
479 "httpread no body hdr end(%p)", h);
485 "httpread zero content length(%p)",
501 "httpread NO BODY for sp. type");
569 "httpread end chunks(%p)", h);
601 "httpread got content(%p)", h);
663 "httpread got content(%p)", h);
686 wpa_printf(MSG_DEBUG, "httpread read/parse failure (%p)", h);
696 "httpread got file %d bytes type %d",
732 struct httpread * httpread_create(
734 void (*cb)(struct httpread *handle, void *cookie,
741 struct httpread *h = NULL;
778 enum httpread_hdr_type httpread_hdr_type_get(struct httpread *h)
787 char * httpread_uri_get(struct httpread *h)
794 int httpread_reply_code_get(struct httpread *h)
801 int httpread_length_get(struct httpread *h)
811 void * httpread_data_get(struct httpread *h)
821 char * httpread_hdr_get(struct httpread *h)
835 char * httpread_hdr_line_get(struct httpread *h, const char *tag)