[mod_http_cache] Generic HTTP API Authorization header support (#1048)

[mod_http_cache] Generic HTTP API Authorization header support
This commit is contained in:
Taner Mansur authored and GitHub committed 2021-02-13 11:32:43 -05:00
1 parent bc8e3da74c
commit f5388e444c
2 files changed
+58 -1

No files matched your search

+3 -1
View File
@@ -45,7 +45,9 @@ struct http_profile {
char *region; // AWS region. Used by AWS S3
switch_time_t expires; // Expiration time in seconds for URL signature. Default is 604800 seconds. Used by AWS S3
switch_size_t bytes_per_block;
int header_count;
char** header_names;
char** header_values;
// function to be called to add the profile specific headers to the GET/PUT requests
switch_curl_slist_t *(*append_headers_ptr)(struct http_profile *profile, switch_curl_slist_t *headers,
const char *verb, unsigned int content_length, const char *content_type, const char *url, const unsigned int block_num, char **query_string);