MCPcopy Index your code
hub / github.com/git/git / curl_setup_http

Function curl_setup_http

http-push.c:204–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204static void curl_setup_http(CURL *curl, const char *url,
205 const char *custom_req, struct buffer *buffer,
206 curl_write_callback write_fn)
207{
208 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
209 curl_easy_setopt(curl, CURLOPT_URL, url);
210 curl_easy_setopt(curl, CURLOPT_INFILE, buffer);
211 curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
212 cast_size_t_to_curl_off_t(buffer->buf.len));
213 curl_easy_setopt(curl, CURLOPT_READFUNCTION, fread_buffer);
214 curl_easy_setopt(curl, CURLOPT_SEEKFUNCTION, seek_buffer);
215 curl_easy_setopt(curl, CURLOPT_SEEKDATA, buffer);
216 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_fn);
217 curl_easy_setopt(curl, CURLOPT_NOBODY, 0L);
218 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, custom_req);
219 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
220}
221
222static struct curl_slist *get_dav_token_headers(struct remote_lock *lock, enum dav_header_flag options)
223{

Callers 6

start_putFunction · 0.85
lock_remoteFunction · 0.85
remote_lsFunction · 0.85
locking_availableFunction · 0.85
update_remoteFunction · 0.85
update_remote_info_refsFunction · 0.85

Calls 1

Tested by

no test coverage detected