Lines Matching defs:body
69 int content_length; /* body length, iff got_content_length */
73 int got_body; /* nonzero when body is finalized */
74 char *body;
82 int chunk_start; /* offset in body of chunk hdr or data */
135 os_free(h->body);
318 /* For some types, we should not try to read a body
320 * that we should not read a body.
324 /* Some codes can have a body and some not.
334 * that GETs have a body length of 0... ?
373 char *bbp; /* pointer into body buffer */
451 wpa_printf(MSG_DEBUG, "httpread no body hdr end(%p)",
483 /* Here to get (more of) body */
484 /* ensure we have enough room for worst case for body
510 "httpread: Unacceptable body length %d (body_alloc_nbytes=%u max_bytes=%u)",
516 if ((new_body = os_realloc(h->body, new_alloc_nbytes))
524 h->body = new_body;
528 bbp = h->body + h->body_nbytes;
534 char *cbp = h->body + h->chunk_start;
634 } /* body copy loop */
697 wpa_hexdump_ascii(MSG_MSGDUMP, "httpread: body",
698 h->body, h->body_nbytes);
700 if (h->body)
701 h->body[h->body_nbytes] = 0; /* null terminate */
726 * Pass max_bytes == 0 to not read body at all (required for e.g.
734 int max_bytes, /* maximum body size else abort it */
806 return h->body ? h->body : "";