bes
Updated for version 3.20.13
HttpNames.h
1
// -*- mode: c++; c-basic-offset:4 -*-
2
3
// This file is part of the BES http package, part of the Hyrax data server.
4
5
// Copyright (c) 2020 OPeNDAP, Inc.
6
// Author: Nathan Potter <ndp@opendap.org>
7
//
8
// This library is free software; you can redistribute it and/or
9
// modify it under the terms of the GNU Lesser General Public
10
// License as published by the Free Software Foundation; either
11
// version 2.1 of the License, or (at your option) any later version.
12
//
13
// This library is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
// Lesser General Public License for more details.
17
//
18
// You should have received a copy of the GNU Lesser General Public
19
// License along with this library; if not, write to the Free Software
20
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
//
22
// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
23
24
// Authors:
25
// ndp Nathan Potter <ndp@opendap.org>
26
27
#ifndef _bes_http_HTTP_NAMES_H
28
#define _bes_http_HTTP_NAMES_H 1
29
30
#define HTTP_PROTOCOL "http://"
31
#define HTTPS_PROTOCOL "https://"
32
#define FILE_PROTOCOL "file://"
33
34
#define HTTP_USER_AGENT_KEY "Http.UserAgent"
35
#define HTTP_DEFAULT_USER_AGENT "hyrax"
36
37
#define HTTP_MIMELIST_KEY "Http.MimeTypes"
38
#define HTTP_PROXYPROTOCOL_KEY "Http.ProxyProtocol"
39
#define HTTP_PROXYHOST_KEY "Http.ProxyHost"
40
#define HTTP_PROXYPORT_KEY "Http.ProxyPort"
41
#define HTTP_PROXYAUTHTYPE_KEY "Http.ProxyAuthType"
42
#define HTTP_PROXYUSER_KEY "Http.ProxyUser"
43
#define HTTP_PROXYPASSWORD_KEY "Http.ProxyPassword"
44
#define HTTP_PROXYUSERPW_KEY "Http.ProxyUserPW"
45
#define HTTP_NO_PROXY_REGEX_KEY "Http.NoProxy"
46
47
#define HTTP_MAX_REDIRECTS_KEY "Http.MaxRedirects"
48
#define HTTP_MAX_REDIRECTS_DEFAULT 20
49
50
51
#define HTTP_CACHE_DIR_KEY "Http.Cache.dir"
52
#define HTTP_CACHE_PREFIX_KEY "Http.Cache.prefix"
53
#define HTTP_CACHE_SIZE_KEY "Http.Cache.size"
54
#define HTTP_CACHE_EXPIRES_TIME_KEY "Http.Cache.expires.time"
55
#define REMOTE_RESOURCE_DEFAULT_EXPIRED_INTERVAL 3600
56
57
#define HTTP_NETRC_FILE_KEY "Http.netrc.file"
58
59
#define HTTP_COOKIES_FILE_KEY "Http.Cookies.File"
60
#define HTTP_DEFAULT_COOKIES_FILE "/tmp/.hyrax-cookies"
61
62
#define HTTP_TARGET_URL_KEY "target_url"
63
#define HTTP_URL_BASE_KEY "url_base"
64
#define HTTP_QUERY_STRING_KEY "query_string"
65
#define HTTP_URL_BASE_KEY "url_base"
66
#define HTTP_INGEST_TIME_KEY "ingest_time"
67
68
#define HTTP_NO_RETRY_URL_REGEX_KEY "Http.No.Retry.Regex"
69
#define HTTP_CACHE_EFFECTIVE_URLS_KEY "Http.cache.effective.urls"
70
#define HTTP_CACHE_EFFECTIVE_URLS_SKIP_REGEX_KEY "Http.cache.effective.urls.skip.regex.pattern"
71
72
#define AMS_EXPIRES_HEADER_KEY "X-Amz-Expires"
73
#define AWS_DATE_HEADER_KEY "X-Amz-Date"
74
#define CLOUDFRONT_EXPIRES_HEADER_KEY "Expires"
75
76
#define HTTP_EFFECTIVE_URL_DEFAULT_EXPIRES_INTERVAL 300
77
#define HTTP_URL_REFRESH_THRESHOLD 60
78
79
#define EDL_AUTH_TOKEN_KEY "edl_auth_token"
80
#define EDL_ECHO_TOKEN_KEY "edl_echo_token"
81
#define EDL_UID_KEY "uid"
82
83
84
#define HTTP_MODULE "http"
85
86
#endif
// _bes_http_HTTP_NAMES_H
http
HttpNames.h
Generated by
1.9.6