/curl/lib/ |
H A D | bufq.c | 35 return chunk->r_offset >= chunk->w_offset; in chunk_is_empty() 40 return chunk->w_offset >= chunk->dlen; in chunk_is_full() 45 return chunk->w_offset - chunk->r_offset; in chunk_len() 50 return chunk->dlen - chunk->w_offset; in chunk_space() 56 chunk->r_offset = chunk->w_offset = 0; in chunk_reset() 63 size_t n = chunk->dlen - chunk->w_offset; in chunk_append() 84 chunk->r_offset = chunk->w_offset = 0; in chunk_read() 102 chunk->r_offset = chunk->w_offset = 0; in chunk_unwrite() 138 *pbuf = &chunk->x.data[chunk->r_offset]; in chunk_peek() 285 chunk = chunk->next; in Curl_bufq_len() [all …]
|
/curl/docs/examples/ |
H A D | httpcustomheader.c | 38 struct curl_slist *chunk = NULL; in main() local 41 chunk = curl_slist_append(chunk, "Accept:"); in main() 44 chunk = curl_slist_append(chunk, "Another: yes"); in main() 47 chunk = curl_slist_append(chunk, "Host: example.com"); in main() 51 chunk = curl_slist_append(chunk, "X-silly-header;"); in main() 54 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); in main() 69 curl_slist_free_all(chunk); in main()
|
H A D | post-callback.c | 112 struct curl_slist *chunk = NULL; in main() local 114 chunk = curl_slist_append(chunk, "Transfer-Encoding: chunked"); in main() 115 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); in main() 135 struct curl_slist *chunk = NULL; in main() local 137 chunk = curl_slist_append(chunk, "Expect:"); in main() 138 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); in main()
|
H A D | getinmemory.c | 67 struct MemoryStruct chunk; in main() local 69 chunk.memory = malloc(1); /* grown as needed by the realloc above */ in main() 70 chunk.size = 0; /* no data at this point */ in main() 84 curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk); in main() 106 printf("%lu bytes retrieved\n", (unsigned long)chunk.size); in main() 112 free(chunk.memory); in main()
|
H A D | postinmemory.c | 63 struct MemoryStruct chunk; in main() local 66 chunk.memory = malloc(1); /* grown as needed by realloc above */ in main() 67 chunk.size = 0; /* no data at this point */ in main() 78 curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk); in main() 103 printf("%s\n",chunk.memory); in main() 110 free(chunk.memory); in main()
|
H A D | http2-pushinmemory.c | 64 static void init_memory(struct Memory *chunk) in init_memory() argument 66 chunk->memory = malloc(1); /* grown as needed with realloc */ in init_memory() 67 chunk->size = 0; /* no data at this point */ in init_memory()
|
/curl/tests/data/ |
H A D | test1086 | 26 Long chunk of data that couldn't possibly be sent in the time allotted. 27 Long chunk of data that couldn't possibly be sent in the time allotted. 28 Long chunk of data that couldn't possibly be sent in the time allotted. 29 Long chunk of data that couldn't possibly be sent in the time allotted. 30 Long chunk of data that couldn't possibly be sent in the time allotted. 31 Long chunk of data that couldn't possibly be sent in the time allotted. 32 Long chunk of data that couldn't possibly be sent in the time allotted. 33 Long chunk of data that couldn't possibly be sent in the time allotted. 34 Long chunk of data that couldn't possibly be sent in the time allotted. 35 Long chunk of data that couldn't possibly be sent in the time allotted. [all …]
|
H A D | test1112 | 26 Long chunk of data that couldn't possibly be sent in the time allotted. 27 Long chunk of data that couldn't possibly be sent in the time allotted. 28 Long chunk of data that couldn't possibly be sent in the time allotted. 29 Long chunk of data that couldn't possibly be sent in the time allotted. 30 Long chunk of data that couldn't possibly be sent in the time allotted. 31 Long chunk of data that couldn't possibly be sent in the time allotted. 32 Long chunk of data that couldn't possibly be sent in the time allotted. 33 Long chunk of data that couldn't possibly be sent in the time allotted. 34 Long chunk of data that couldn't possibly be sent in the time allotted. 35 Long chunk of data that couldn't possibly be sent in the time allotted. [all …]
|
H A D | test1094 | 14 a chunk of 20 a chunk of
|
H A D | test285 | 22 a chunk of 33 a chunk of
|
H A D | test1243 | 22 a chunk of 33 a chunk of
|
H A D | test286 | 22 A chunk of data which exactly fits into 57 A chunk of data which exactly fits into
|
H A D | test2003 | 41 a chunk of 127 a chunk of 131 a chunk of
|
H A D | test271 | 13 a chunk of
|
H A D | test2002 | 41 a chunk of 114 a chunk of
|
H A D | test1242 | 13 a chunk of
|
H A D | test332 | 12 a chunk of
|
H A D | test1049 | 14 a chunk of
|
H A D | test1093 | 14 a chunk of
|
H A D | test1009 | 14 a chunk of
|
H A D | test284 | 13 A chunk of data which exactly fits into
|
/curl/tests/libtest/ |
H A D | lib1901.c | 60 struct curl_slist *chunk = NULL; in test() local 77 chunk = curl_slist_append(chunk, "Expect:"); in test() 78 if(chunk) { in test() 80 curl_slist_append(chunk, "Transfer-Encoding: chunked"); in test() 82 chunk = n; in test() 91 curl_slist_free_all(chunk); in test()
|
/curl/tests/unit/ |
H A D | unit2601.c | 48 chunk = q->head; in tail_err() 49 while(chunk) { in tail_err() 51 if(chunk->next) { in tail_err() 56 chunk = chunk->next; in tail_err() 70 chunk = q->head; in dump_bufq() 71 while(chunk) { in dump_bufq() 73 chunk->dlen, chunk->r_offset, chunk->w_offset); in dump_bufq() 74 chunk = chunk->next; in dump_bufq() 80 chunk = q->spare; in dump_bufq() 81 while(chunk) { in dump_bufq() [all …]
|
/curl/docs/libcurl/opts/ |
H A D | CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE.md | 18 CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE - chunk length threshold for pipelining 35 current chunk length larger than CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3),
|
H A D | CURLOPT_WRITEFUNCTION.md | 37 many times and each invoke delivers another chunk of data. *ptr* points to the 110 struct memory chunk = {0}; 117 /* we pass our 'chunk' struct to the callback function */ 118 curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk); 124 free(chunk.response);
|