/usr/include/pcp/pmhttp.h is in libpcp-web1-dev 4.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | /*
* Copyright (c) 2016 Red Hat.
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details.
*
* Simple, light-weight HTTP client interface (libpcp_web)
*/
#ifndef PCP_PMHTTP_H
#define PCP_PMHTTP_H
#ifdef __cplusplus
extern "C" {
#endif
typedef enum http_protocol {
PV_HTTP_1_0,
PV_HTTP_1_1,
PV_MAX
} http_protocol;
struct timeval;
struct http_client;
extern struct http_client *pmhttpNewClient(void);
extern void pmhttpFreeClient(struct http_client *);
extern int pmhttpClientFetch(struct http_client *, const char *,
char *, size_t, char *, size_t);
extern int pmhttpClientSetTimeout(struct http_client *, struct timeval *);
extern int pmhttpClientSetProtocol(struct http_client *, enum http_protocol);
extern int pmhttpClientSetUserAgent(struct http_client *, const char *, const char *);
#ifdef __cplusplus
}
#endif
#endif /* PCP_PMHTTP_H */
|