diff options
Diffstat (limited to 'common/http.h')
-rw-r--r-- | common/http.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/http.h b/common/http.h index e311afe60..0fc2082a3 100644 --- a/common/http.h +++ b/common/http.h @@ -66,7 +66,8 @@ enum HTTP_FLAG_TRY_PROXY = 1, HTTP_FLAG_NO_SHUTDOWN = 2, HTTP_FLAG_TRY_SRV = 4, - HTTP_FLAG_LOG_RESP = 8 + HTTP_FLAG_LOG_RESP = 8, + HTTP_FLAG_NEED_HEADER = 16 }; struct http_context_s; @@ -106,6 +107,7 @@ FILE *http_get_read_ptr (http_t hd); FILE *http_get_write_ptr (http_t hd); #endif /*!HTTP_USE_ESTREAM*/ unsigned int http_get_status_code (http_t hd); +const char *http_get_header (http_t hd, const char *name); char *http_escape_string (const char *string, const char *specials); |