Home
last modified time | relevance | path

Searched refs:chunk (Results 1 – 25 of 42) sorted by relevance

12

/curl/lib/
H A Dbufq.c35 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 Dhttpcustomheader.c38 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 Dpost-callback.c112 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 Dgetinmemory.c67 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 Dpostinmemory.c63 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 Dhttp2-pushinmemory.c64 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 Dtest108626 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 Dtest111226 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 Dtest109414 a chunk of
20 a chunk of
H A Dtest28522 a chunk of
33 a chunk of
H A Dtest124322 a chunk of
33 a chunk of
H A Dtest28622 A chunk of data which exactly fits into
57 A chunk of data which exactly fits into
H A Dtest200341 a chunk of
127 a chunk of
131 a chunk of
H A Dtest27113 a chunk of
H A Dtest200241 a chunk of
114 a chunk of
H A Dtest33212 a chunk of
H A Dtest124213 a chunk of
H A Dtest100914 a chunk of
H A Dtest109314 a chunk of
H A Dtest104914 a chunk of
H A Dtest28413 A chunk of data which exactly fits into
/curl/tests/unit/
H A Dunit2601.c48 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/tests/libtest/
H A Dlib1901.c60 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/docs/libcurl/opts/
H A DCURLMOPT_CHUNK_LENGTH_PENALTY_SIZE.md18 CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE - chunk length threshold for pipelining
35 current chunk length larger than CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE(3),
H A DCURLOPT_WRITEFUNCTION.md37 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);

Completed in 37 milliseconds

12