mirror of
https://github.com/curl/curl.git
synced 2025-09-17 17:42:49 +03:00
lib: make the headers API depend on --enable-headers-api
This commit is contained in:
parent
7c8c723682
commit
ac81a9c9ae
|
@ -32,7 +32,7 @@
|
||||||
#include "curl_memory.h"
|
#include "curl_memory.h"
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
|
||||||
#ifndef CURL_DISABLE_HTTP
|
#if !defined(CURL_DISABLE_HTTP) && defined(USE_HEADERS_API)
|
||||||
|
|
||||||
/* Generate the curl_header struct for the user. This function MUST assign all
|
/* Generate the curl_header struct for the user. This function MUST assign all
|
||||||
struct fields in the output struct. */
|
struct fields in the output struct. */
|
||||||
|
@ -297,23 +297,27 @@ CURLcode Curl_headers_cleanup(struct Curl_easy *data)
|
||||||
CURLHcode curl_easy_header(CURL *easy,
|
CURLHcode curl_easy_header(CURL *easy,
|
||||||
const char *name,
|
const char *name,
|
||||||
size_t index,
|
size_t index,
|
||||||
unsigned int type,
|
unsigned int origin,
|
||||||
|
int request,
|
||||||
struct curl_header **hout)
|
struct curl_header **hout)
|
||||||
{
|
{
|
||||||
(void)easy;
|
(void)easy;
|
||||||
(void)name;
|
(void)name;
|
||||||
(void)index;
|
(void)index;
|
||||||
(void)type;
|
(void)origin;
|
||||||
|
(void)request;
|
||||||
(void)hout;
|
(void)hout;
|
||||||
return CURLHE_NOT_BUILT_IN;
|
return CURLHE_NOT_BUILT_IN;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct curl_header *curl_easy_nextheader(CURL *easy,
|
struct curl_header *curl_easy_nextheader(CURL *easy,
|
||||||
unsigned int type,
|
unsigned int type,
|
||||||
|
int request,
|
||||||
struct curl_header *prev)
|
struct curl_header *prev)
|
||||||
{
|
{
|
||||||
(void)easy;
|
(void)easy;
|
||||||
(void)type;
|
(void)type;
|
||||||
|
(void)request;
|
||||||
(void)prev;
|
(void)prev;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "curl_setup.h"
|
#include "curl_setup.h"
|
||||||
|
|
||||||
#ifndef CURL_DISABLE_HTTP
|
#if !defined(CURL_DISABLE_HTTP) && defined(USE_HEADERS_API)
|
||||||
|
|
||||||
struct Curl_header_store {
|
struct Curl_header_store {
|
||||||
struct Curl_llist_element node;
|
struct Curl_llist_element node;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user