Lines Matching defs:SingleRequest
504 struct SingleRequest { struct
505 curl_off_t size; /* -1 if unknown at this point */
506 curl_off_t *bytecountp; /* return number of bytes read or NULL */
508 curl_off_t maxdownload; /* in bytes, the maximum amount of data to fetch,
510 curl_off_t *writebytecountp; /* return number of bytes written or NULL */
512 curl_off_t bytecount; /* total number of bytes read */
513 curl_off_t writebytecount; /* number of bytes written */
515 long headerbytecount; /* only count received headers */
516 long deductheadercount; /* this amount of bytes doesn't count when we check
522 struct curltime start; /* transfer started at this time */
523 struct curltime now; /* current time */
524 bool header; /* incoming data has HTTP header */
525 enum {
530 } badheader; /* the header was deemed bad and will be
532 int headerline; /* counts header lines to better track the
534 char *hbufp; /* points at *end* of header line */
535 size_t hbuflen;
536 char *str; /* within buf */
537 char *str_start; /* within buf */
538 char *end_ptr; /* within buf */
539 char *p; /* within headerbuff */
540 bool content_range; /* set TRUE if Content-Range: was found */
541 curl_off_t offset; /* possible resume offset read from the
543 int httpcode; /* error code from the 'HTTP/1.? XXX' or
545 struct curltime start100; /* time stamp to wait for the 100 code from */
546 enum expect100 exp100; /* expect 100 continue state */
547 enum upgrade101 upgr101; /* 101 upgrade state */
549 struct contenc_writer_s *writer_stack; /* Content unencoding stack. */
551 time_t timeofdoc;
552 long bodywrites;
554 char *buf;
555 curl_socket_t maxfd;
557 int keepon;
559 bool upload_done; /* set to TRUE when doing chunked transfer-encoding upload
562 bool ignorebody; /* we read a response-body but we ignore it! */
563 bool ignorecl; /* This HTTP response has no body so we ignore the Content-
566 char *location; /* This points to an allocated version of the Location:
568 char *newurl; /* Set to the new URL to use when a redirect or a retry is
573 ssize_t upload_present;
579 char *upload_fromhere;
581 bool chunk; /* if set, this is a chunked transfer-encoding */
582 bool upload_chunky; /* set TRUE if we are doing chunked transfer-encoding
584 bool getheader; /* TRUE if header parsing is wanted */
586 bool forbidchunk; /* used only to explicitly forbid chunk-upload for
590 void *protop; /* Allocated protocol-specific data. Each protocol