master
1/***************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
7 *
8 * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
9 *
10 * This software is licensed as described in the file COPYING, which
11 * you should have received as part of this distribution. The terms
12 * are also available at https://curl.se/docs/copyright.html.
13 *
14 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
17 *
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
20 *
21 * SPDX-License-Identifier: curl
22 *
23 ***************************************************************************/
24#include "curl_setup.h"
26#ifdef USE_NGHTTP2
27#include <nghttp2/nghttp2.h>
28#endif
30#include "urldata.h"
31#include "vtls/vtls.h"
32#include "http2.h"
33#include "vssh/ssh.h"
34#include "vquic/vquic.h"
35#include "easy_lock.h"
37#ifdef USE_ARES
38# include <ares.h>
39#endif
41#ifdef USE_LIBIDN2
42#include <idn2.h>
43#endif
45#ifdef USE_LIBPSL
46#include <libpsl.h>
47#endif
49#ifdef HAVE_LIBZ
50#include <zlib.h>
51#endif
53#ifdef HAVE_BROTLI
54#ifdef CURL_HAVE_DIAG
55/* Ignore -Wvla warnings in brotli headers */
56#pragma GCC diagnostic push
57#pragma GCC diagnostic ignored "-Wvla"
58#endif
59#include <brotli/decode.h>
60#ifdef CURL_HAVE_DIAG
61#pragma GCC diagnostic pop
62#endif
63#endif
65#ifdef HAVE_ZSTD
66#include <zstd.h>
67#endif
69#ifdef USE_GSASL
70#include <gsasl.h>
71#endif
73#ifndef CURL_DISABLE_LDAP
74#include "curl_ldap.h"
75#endif
77#ifdef HAVE_BROTLI
78static void brotli_version(char *buf, size_t bufsz)
79{
80 uint32_t brotli_version = BrotliDecoderVersion();
81 unsigned int major = brotli_version >> 24;
82 unsigned int minor = (brotli_version & 0x00FFFFFF) >> 12;
83 unsigned int patch = brotli_version & 0x00000FFF;
84 (void)curl_msnprintf(buf, bufsz, "brotli/%u.%u.%u", major, minor, patch);
85}
86#endif
88#ifdef HAVE_ZSTD
89static void zstd_version(char *buf, size_t bufsz)
90{
91 unsigned int version = ZSTD_versionNumber();
92 unsigned int major = version / (100 * 100);
93 unsigned int minor = (version - (major * 100 * 100)) / 100;
94 unsigned int patch = version - (major * 100 * 100) - (minor * 100);
95 (void)curl_msnprintf(buf, bufsz, "zstd/%u.%u.%u", major, minor, patch);
96}
97#endif
99#ifdef USE_LIBPSL
100static void psl_version(char *buf, size_t bufsz)
101{
102#if defined(PSL_VERSION_MAJOR) && (PSL_VERSION_MAJOR > 0 || \
103 PSL_VERSION_MINOR >= 11)
104 int num = psl_check_version_number(0);
105 curl_msnprintf(buf, bufsz, "libpsl/%d.%d.%d",
106 num >> 16, (num >> 8) & 0xff, num & 0xff);
107#else
108 curl_msnprintf(buf, bufsz, "libpsl/%s", psl_get_version());
109#endif
110}
111#endif
113#if defined(USE_LIBIDN2) || defined(USE_WIN32_IDN) || defined(USE_APPLE_IDN)
114#define USE_IDN
115#endif
117#ifdef USE_IDN
118static void idn_version(char *buf, size_t bufsz)
119{
120#ifdef USE_LIBIDN2
121 curl_msnprintf(buf, bufsz, "libidn2/%s", idn2_check_version(NULL));
122#elif defined(USE_WIN32_IDN)
123 curl_msnprintf(buf, bufsz, "WinIDN");
124#elif defined(USE_APPLE_IDN)
125 curl_msnprintf(buf, bufsz, "AppleIDN");
126#endif
127}
128#endif
130/*
131 * curl_version() returns a pointer to a static buffer.
132 *
133 * It is implemented to work multi-threaded by making sure repeated invokes
134 * generate the exact same string and never write any temporary data like
135 * zeros in the data.
136 */
138#define VERSION_PARTS 16 /* number of substrings we can concatenate */
140char *curl_version(void)
141{
142 static char out[300];
143 char *outp;
144 size_t outlen;
145 const char *src[VERSION_PARTS];
146#ifdef USE_SSL
147 char ssl_version[200];
148#endif
149#ifdef HAVE_LIBZ
150 char z_version[30];
151#endif
152#ifdef HAVE_BROTLI
153 char br_version[30];
154#endif
155#ifdef HAVE_ZSTD
156 char zstd_ver[30];
157#endif
158#ifdef USE_ARES
159 char cares_version[30];
160#endif
161#ifdef USE_IDN
162 char idn_ver[30];
163#endif
164#ifdef USE_LIBPSL
165 char psl_ver[30];
166#endif
167#ifdef USE_SSH
168 char ssh_version[30];
169#endif
170#if !defined(CURL_DISABLE_HTTP) && defined(USE_NGHTTP2)
171 char h2_version[30];
172#endif
173#if !defined(CURL_DISABLE_HTTP) && defined(USE_HTTP3)
174 char h3_version[30];
175#endif
176#ifdef USE_GSASL
177 char gsasl_buf[30];
178#endif
179#ifdef HAVE_GSSAPI
180 char gss_buf[40];
181#endif
182#ifndef CURL_DISABLE_LDAP
183 char ldap_buf[30];
184#endif
185 int i = 0;
186 int j;
188#ifdef DEBUGBUILD
189 /* Override version string when environment variable CURL_DEBUG_VERSION is
190 set */
191 const char *debugversion = getenv("CURL_DEBUG_VERSION");
192 if(debugversion) {
193 curl_msnprintf(out, sizeof(out), "%s", debugversion);
194 return out;
195 }
196#endif
198 src[i++] = LIBCURL_NAME "/" LIBCURL_VERSION;
199#ifdef USE_SSL
200 Curl_ssl_version(ssl_version, sizeof(ssl_version));
201 src[i++] = ssl_version;
202#endif
203#ifdef HAVE_LIBZ
204 curl_msnprintf(z_version, sizeof(z_version), "zlib/%s", zlibVersion());
205 src[i++] = z_version;
206#endif
207#ifdef HAVE_BROTLI
208 brotli_version(br_version, sizeof(br_version));
209 src[i++] = br_version;
210#endif
211#ifdef HAVE_ZSTD
212 zstd_version(zstd_ver, sizeof(zstd_ver));
213 src[i++] = zstd_ver;
214#endif
215#ifdef USE_ARES
216 curl_msnprintf(cares_version, sizeof(cares_version),
217 "c-ares/%s", ares_version(NULL));
218 src[i++] = cares_version;
219#endif
220#ifdef USE_IDN
221 idn_version(idn_ver, sizeof(idn_ver));
222 src[i++] = idn_ver;
223#endif
224#ifdef USE_LIBPSL
225 psl_version(psl_ver, sizeof(psl_ver));
226 src[i++] = psl_ver;
227#endif
228#ifdef USE_SSH
229 Curl_ssh_version(ssh_version, sizeof(ssh_version));
230 src[i++] = ssh_version;
231#endif
232#if !defined(CURL_DISABLE_HTTP) && defined(USE_NGHTTP2)
233 Curl_http2_ver(h2_version, sizeof(h2_version));
234 src[i++] = h2_version;
235#endif
236#if !defined(CURL_DISABLE_HTTP) && defined(USE_HTTP3)
237 Curl_quic_ver(h3_version, sizeof(h3_version));
238 src[i++] = h3_version;
239#endif
240#ifdef USE_GSASL
241 curl_msnprintf(gsasl_buf, sizeof(gsasl_buf), "libgsasl/%s",
242 gsasl_check_version(NULL));
243 src[i++] = gsasl_buf;
244#endif
245#ifdef HAVE_GSSAPI
246#ifdef HAVE_GSSAPPLE
247 curl_msnprintf(gss_buf, sizeof(gss_buf), "AppleGSS");
248#elif defined(HAVE_GSSGNU)
249 curl_msnprintf(gss_buf, sizeof(gss_buf), "libgss/%s", GSS_VERSION);
250#elif defined(CURL_KRB5_VERSION)
251 curl_msnprintf(gss_buf, sizeof(gss_buf), "mit-krb5/%s", CURL_KRB5_VERSION);
252#else
253 curl_msnprintf(gss_buf, sizeof(gss_buf), "mit-krb5");
254#endif
255 src[i++] = gss_buf;
256#endif /* HAVE_GSSAPI */
257#ifndef CURL_DISABLE_LDAP
258 Curl_ldap_version(ldap_buf, sizeof(ldap_buf));
259 src[i++] = ldap_buf;
260#endif
262 DEBUGASSERT(i <= VERSION_PARTS);
264 outp = &out[0];
265 outlen = sizeof(out);
266 for(j = 0; j < i; j++) {
267 size_t n = strlen(src[j]);
268 /* we need room for a space, the string and the final zero */
269 if(outlen <= (n + 2))
270 break;
271 if(j) {
272 /* prepend a space if not the first */
273 *outp++ = ' ';
274 outlen--;
275 }
276 memcpy(outp, src[j], n);
277 outp += n;
278 outlen -= n;
279 }
280 *outp = 0;
282 return out;
283}
285/* data for curl_version_info
287 Keep the list sorted alphabetically. It is also written so that each
288 protocol line has its own #if line to make things easier on the eye.
289 */
291static const char * const supported_protocols[] = {
292#ifndef CURL_DISABLE_DICT
293 "dict",
294#endif
295#ifndef CURL_DISABLE_FILE
296 "file",
297#endif
298#ifndef CURL_DISABLE_FTP
299 "ftp",
300#endif
301#if defined(USE_SSL) && !defined(CURL_DISABLE_FTP)
302 "ftps",
303#endif
304#ifndef CURL_DISABLE_GOPHER
305 "gopher",
306#endif
307#if defined(USE_SSL) && !defined(CURL_DISABLE_GOPHER)
308 "gophers",
309#endif
310#ifndef CURL_DISABLE_HTTP
311 "http",
312#endif
313#if defined(USE_SSL) && !defined(CURL_DISABLE_HTTP)
314 "https",
315#endif
316#ifndef CURL_DISABLE_IMAP
317 "imap",
318#endif
319#if defined(USE_SSL) && !defined(CURL_DISABLE_IMAP)
320 "imaps",
321#endif
322#ifndef CURL_DISABLE_LDAP
323 "ldap",
324#if !defined(CURL_DISABLE_LDAPS) && \
325 ((defined(USE_OPENLDAP) && defined(USE_SSL)) || \
326 (!defined(USE_OPENLDAP) && defined(HAVE_LDAP_SSL)))
327 "ldaps",
328#endif
329#endif
330#ifndef CURL_DISABLE_MQTT
331 "mqtt",
332#endif
333#if defined(USE_SSL) && !defined(CURL_DISABLE_MQTT)
334 "mqtts",
335#endif
336#ifndef CURL_DISABLE_POP3
337 "pop3",
338#endif
339#if defined(USE_SSL) && !defined(CURL_DISABLE_POP3)
340 "pop3s",
341#endif
342#ifndef CURL_DISABLE_RTSP
343 "rtsp",
344#endif
345#ifdef USE_SSH
346 "scp",
347 "sftp",
348#endif
349#ifndef CURL_DISABLE_SMTP
350 "smtp",
351#endif
352#if defined(USE_SSL) && !defined(CURL_DISABLE_SMTP)
353 "smtps",
354#endif
355#ifndef CURL_DISABLE_TELNET
356 "telnet",
357#endif
358#ifndef CURL_DISABLE_TFTP
359 "tftp",
360#endif
361#ifndef CURL_DISABLE_HTTP
362 /* WebSocket support relies on HTTP */
363#ifndef CURL_DISABLE_WEBSOCKETS
364 "ws",
365#endif
366#if defined(USE_SSL) && !defined(CURL_DISABLE_WEBSOCKETS)
367 "wss",
368#endif
369#endif
371 NULL
372};
374/*
375 * Feature presence runtime check functions.
376 *
377 * Warning: the value returned by these should not change between
378 * curl_global_init() and curl_global_cleanup() calls.
379 */
381#if defined(USE_LIBIDN2) || defined(USE_WIN32_IDN) || defined(USE_APPLE_IDN)
382static int idn_present(curl_version_info_data *info)
383{
384#if defined(USE_WIN32_IDN) || defined(USE_APPLE_IDN)
385 (void)info;
386 return TRUE;
387#else
388 return !!info->libidn;
389#endif
390}
391#endif
393#if defined(USE_SSL) && !defined(CURL_DISABLE_PROXY) && \
394 !defined(CURL_DISABLE_HTTP)
395static int https_proxy_present(curl_version_info_data *info)
396{
397 (void)info;
398 return Curl_ssl_supports(NULL, SSLSUPP_HTTPS_PROXY);
399}
400#endif
402#if defined(USE_SSL) && defined(USE_ECH)
403static int ech_present(curl_version_info_data *info)
404{
405 (void)info;
406 return Curl_ssl_supports(NULL, SSLSUPP_ECH);
407}
408#endif
410/*
411 * Features table.
412 *
413 * Keep the features alphabetically sorted.
414 * Use FEATURE() macro to define an entry: this allows documentation check.
415 */
417#define FEATURE(name, present, bitmask) { (name), (present), (bitmask) }
419struct feat {
420 const char *name;
421 int (*present)(curl_version_info_data *info);
422 int bitmask;
423};
425static const struct feat features_table[] = {
426#ifndef CURL_DISABLE_ALTSVC
427 FEATURE("alt-svc", NULL, CURL_VERSION_ALTSVC),
428#endif
429#if defined(USE_ARES) && defined(USE_RESOLV_THREADED) && defined(USE_HTTPSRR)
430 FEATURE("asyn-rr", NULL, 0),
431#endif
432#ifdef CURLRES_ASYNCH
433 FEATURE("AsynchDNS", NULL, CURL_VERSION_ASYNCHDNS),
434#endif
435#ifdef HAVE_BROTLI
436 FEATURE("brotli", NULL, CURL_VERSION_BROTLI),
437#endif
438#ifdef DEBUGBUILD
439 FEATURE("Debug", NULL, CURL_VERSION_DEBUG),
440#endif
441#if defined(USE_SSL) && defined(USE_ECH)
442 FEATURE("ECH", ech_present, 0),
444#ifndef USE_HTTPSRR
445#error "ECH enabled but not HTTPSRR, must be a config error"
446#endif
447#endif
448#ifdef USE_GSASL
449 FEATURE("gsasl", NULL, CURL_VERSION_GSASL),
450#endif
451#ifdef HAVE_GSSAPI
452 FEATURE("GSS-API", NULL, CURL_VERSION_GSSAPI),
453#endif
454#ifndef CURL_DISABLE_HSTS
455 FEATURE("HSTS", NULL, CURL_VERSION_HSTS),
456#endif
457#if !defined(CURL_DISABLE_HTTP) && defined(USE_NGHTTP2)
458 FEATURE("HTTP2", NULL, CURL_VERSION_HTTP2),
459#endif
460#if !defined(CURL_DISABLE_HTTP) && defined(USE_HTTP3)
461 FEATURE("HTTP3", NULL, CURL_VERSION_HTTP3),
462#endif
463#if defined(USE_SSL) && !defined(CURL_DISABLE_PROXY) && \
464 !defined(CURL_DISABLE_HTTP)
465 FEATURE("HTTPS-proxy", https_proxy_present, CURL_VERSION_HTTPS_PROXY),
466#endif
467#ifndef CURL_DISABLE_HTTPSIG
468 FEATURE("HTTPSIG", NULL, 0),
469#endif
470#ifdef USE_HTTPSRR
471 FEATURE("HTTPSRR", NULL, 0),
472#endif
473#if defined(USE_LIBIDN2) || defined(USE_WIN32_IDN) || defined(USE_APPLE_IDN)
474 FEATURE("IDN", idn_present, CURL_VERSION_IDN),
475#endif
476#ifdef USE_IPV6
477 FEATURE("IPv6", NULL, CURL_VERSION_IPV6),
478#endif
479#ifdef USE_KERBEROS5
480 FEATURE("Kerberos", NULL, CURL_VERSION_KERBEROS5),
481#endif
482#if (SIZEOF_CURL_OFF_T > 4) && ((SIZEOF_OFF_T > 4) || defined(_WIN32))
483 FEATURE("Largefile", NULL, CURL_VERSION_LARGEFILE),
484#endif
485#ifdef HAVE_LIBZ
486 FEATURE("libz", NULL, CURL_VERSION_LIBZ),
487#endif
488#ifdef CURL_WITH_MULTI_SSL
489 FEATURE("MultiSSL", NULL, CURL_VERSION_MULTI_SSL),
490#endif
491 /* NTLM is not supported anymore */
492#ifdef USE_PROXY_HTTP3
493 FEATURE("proxy-HTTP3", NULL, 0),
494#endif
495#ifdef USE_LIBPSL
496 FEATURE("PSL", NULL, CURL_VERSION_PSL),
497#endif
498#ifdef USE_SSL
499#ifdef USE_APPLE_SECTRUST
500 FEATURE("AppleSecTrust", NULL, 0),
501#elif defined(CURL_CA_NATIVE)
502 FEATURE("NativeCA", NULL, 0),
503#endif
504#endif /* USE_SSL */
505#ifdef USE_SPNEGO
506 FEATURE("SPNEGO", NULL, CURL_VERSION_SPNEGO),
507#endif
508#ifdef USE_SSL
509 FEATURE("SSL", NULL, CURL_VERSION_SSL),
510#endif
511#ifdef USE_SSLS_EXPORT
512 FEATURE("SSLS-EXPORT", NULL, 0),
513#endif
514#ifdef USE_WINDOWS_SSPI
515 FEATURE("SSPI", NULL, CURL_VERSION_SSPI),
516#endif
517#ifdef GLOBAL_INIT_IS_THREADSAFE
518 FEATURE("threadsafe", NULL, CURL_VERSION_THREADSAFE),
519#endif
520#if defined(_WIN32) && defined(UNICODE) && defined(_UNICODE)
521 FEATURE("Unicode", NULL, CURL_VERSION_UNICODE),
522#endif
523#ifdef USE_UNIX_SOCKETS
524 FEATURE("UnixSockets", NULL, CURL_VERSION_UNIX_SOCKETS),
525#endif
526#ifdef HAVE_ZSTD
527 FEATURE("zstd", NULL, CURL_VERSION_ZSTD),
528#endif
529 {NULL, NULL, 0}
530};
532static const char *feature_names[CURL_ARRAYSIZE(features_table)] = { NULL };
534static curl_version_info_data version_info = {
535 CURLVERSION_NOW,
536 LIBCURL_VERSION,
537 LIBCURL_VERSION_NUM,
538 CURL_OS, /* as found by configure or set by hand at build-time */
539 0, /* features bitmask is built at runtime */
540 NULL, /* ssl_version */
541 0, /* ssl_version_num, this is kept at zero */
542 NULL, /* zlib_version */
543 supported_protocols,
544 NULL, /* c-ares version */
545 0, /* c-ares version numerical */
546 NULL, /* libidn version */
547 0, /* iconv version */
548 NULL, /* ssh lib version */
549 0, /* brotli_ver_num */
550 NULL, /* brotli version */
551 0, /* nghttp2 version number */
552 NULL, /* nghttp2 version string */
553 NULL, /* quic library string */
554#ifdef CURL_CA_BUNDLE
555 CURL_CA_BUNDLE, /* cainfo */
556#else
557 NULL,
558#endif
559#ifdef CURL_CA_PATH
560 CURL_CA_PATH, /* capath */
561#else
562 NULL,
563#endif
564 0, /* zstd_ver_num */
565 NULL, /* zstd version */
566 NULL, /* Hyper version */
567 NULL, /* gsasl version */
568 feature_names,
569 NULL /* rtmp version */
570};
572curl_version_info_data *curl_version_info(CURLversion stamp)
573{
574 size_t n;
575 const struct feat *p;
576 int features = 0;
578#ifdef USE_SSH
579 static char ssh_buf[80]; /* 'ssh_buffer' clashes with libssh/libssh.h */
580#endif
581#ifdef USE_SSL
582#ifdef CURL_WITH_MULTI_SSL
583 static char ssl_buffer[200];
584#else
585 static char ssl_buffer[80];
586#endif
587#endif
588#ifdef HAVE_BROTLI
589 static char brotli_buffer[80];
590#endif
591#ifdef HAVE_ZSTD
592 static char zstd_buffer[80];
593#endif
595 (void)stamp;
597#ifdef USE_SSL
598 Curl_ssl_version(ssl_buffer, sizeof(ssl_buffer));
599 version_info.ssl_version = ssl_buffer;
600#endif
602#ifdef HAVE_LIBZ
603 version_info.libz_version = zlibVersion();
604 /* libz left NULL if non-existing */
605#endif
606#ifdef USE_ARES
607 {
608 int aresnum;
609 version_info.ares = ares_version(&aresnum);
610 version_info.ares_num = aresnum;
611 }
612#endif
613#ifdef USE_LIBIDN2
614 /* This returns a version string if we use the given version or later,
615 otherwise it returns NULL */
616 version_info.libidn = idn2_check_version(IDN2_VERSION);
617#endif
619#ifdef USE_SSH
620 Curl_ssh_version(ssh_buf, sizeof(ssh_buf));
621 version_info.libssh_version = ssh_buf;
622#endif
624#ifdef HAVE_BROTLI
625 version_info.brotli_ver_num = BrotliDecoderVersion();
626 brotli_version(brotli_buffer, sizeof(brotli_buffer));
627 version_info.brotli_version = brotli_buffer;
628#endif
630#ifdef HAVE_ZSTD
631 version_info.zstd_ver_num = ZSTD_versionNumber();
632 zstd_version(zstd_buffer, sizeof(zstd_buffer));
633 version_info.zstd_version = zstd_buffer;
634#endif
636#ifdef USE_NGHTTP2
637 {
638 nghttp2_info *h2 = nghttp2_version(0);
639 version_info.nghttp2_ver_num = (unsigned int)h2->version_num;
640 version_info.nghttp2_version = h2->version_str;
641 }
642#endif
644#if !defined(CURL_DISABLE_HTTP) && defined(USE_HTTP3)
645 {
646 static char quicbuffer[80];
647 Curl_quic_ver(quicbuffer, sizeof(quicbuffer));
648 version_info.quic_version = quicbuffer;
649 }
650#endif
652#ifdef USE_GSASL
653 {
654 version_info.gsasl_version = gsasl_check_version(NULL);
655 }
656#endif
658 /* Get available features, build bitmask and names array. */
659 n = 0;
660 for(p = features_table; p->name; p++)
661 if(!p->present || p->present(&version_info)) {
662 features |= p->bitmask;
663 feature_names[n++] = p->name;
664 }
666#ifdef DEBUGBUILD
667 features |= CURL_VERSION_CURLDEBUG; /* for compatibility */
668#endif
670 feature_names[n] = NULL; /* Terminate array. */
671 version_info.features = features;
673 return &version_info;
674}
Diagnostics4 git calls · 33 ms
CallStatusSizeTime033 ms
discover200152 B3 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=152 git.server.agent=gitty/1.0 git.server.object_format=sha1 git.server.caps=agent ls-refs fetch object-format git.server.fetch=shallow filter sideband-all git.protocol.version=2 git.pkt.frames=8 git.pkt.data=6 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=152 git.pkt.payload.max=34
ls-refs200149 B · hit3 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=3 git.response.bytes=149 git.response.cache=HIT git.response.duration_ms=3 git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=149 git.pkt.payload.max=78 git.ls_refs.count=2 git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=28 git.response.bytes=293470 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=blob:none git.fetch.filter.requested=tree:0 git.fetch.filter.fallback=blob:none git.fetch.filter.learned=false git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=10 git.pkt.data=8 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=293470 git.pkt.payload.max=65516 git.sideband.band1.bytes=293354 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=87 git.pack.bytes=293354 git.pack.ofs_delta=0 git.pack.ref_delta=1 git.pack.chain.max=1 git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0 git.pack.full=86Open pack map
fetch2005.1 KiB · hit28 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=5238 git.response.cache=HIT git.response.duration_ms=28 git.fetch.wants=c2b54cb811b16af7cbdbdfde1f114c1887869cb3 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=5238 git.pkt.payload.max=5217 git.sideband.band1.bytes=5216 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
- Ref
- refs/heads/master
- Commit
- 31c911efe5652725e930f4d2e60c9060e5f6646d
- cf-ray
- a5e261d46ad1224d
- Request
- 97fb956f…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format