File Coverage

deps/libgit2/src/transports/http.h
Criterion Covered Total %
statement 0 5 0.0
branch 0 2 0.0
condition n/a
subroutine n/a
pod n/a
total 0 7 0.0


line stmt bran cond sub pod time code
1             /*
2             * Copyright (C) the libgit2 contributors. All rights reserved.
3             *
4             * This file is part of libgit2, distributed under the GNU GPL v2 with
5             * a Linking Exception. For full terms see the included COPYING file.
6             */
7              
8             #ifndef INCLUDE_transports_http_h__
9             #define INCLUDE_transports_http_h__
10              
11             #include "buffer.h"
12             #include "httpclient.h"
13              
14             #define GIT_HTTP_REPLAY_MAX 15
15              
16             extern bool git_http__expect_continue;
17              
18 0           GIT_INLINE(int) git_http__user_agent(git_buf *buf)
19             {
20 0           const char *ua = git_libgit2__user_agent();
21              
22 0 0         if (!ua)
23 0           ua = "libgit2 " LIBGIT2_VERSION;
24              
25 0           return git_buf_printf(buf, "git/2.0 (%s)", ua);
26             }
27              
28             #endif