HTTP configuration support. More...
#include <records/I_RecCore.h>
#include <records/I_RecHttp.h>
#include <ts/ink_defs.h>
#include <ts/Tokenizer.h>
#include <strings.h>
Go to the source code of this file.
HTTP configuration support.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file RecHttp.cc.
Load default inbound IP addresses from the configuration file.
value_name | Name of value in configuration file. | |
[out] | ip4 | IPv4 address. |
[out] | ip6 | Ipv6 address. |
Definition at line 66 of file RecHttp.cc.
References ats_ip_getbestaddrinfo(), ats_is_ip4(), ats_is_ip6(), Tokenizer::Initialize(), IpAddr::invalidate(), IpAddr::isValid(), REC_ERR_OKAY, RecGetRecordString(), and Warning.
Referenced by HttpConfig::startup().
void ts_host_res_global_init | ( | ) |
Initialize global values for HttpProxyPort / Host Resolution.
Definition at line 562 of file RecHttp.cc.
References ats_free(), HOST_RES_DEFAULT_PREFERENCE_ORDER, host_res_default_preference_order, memcpy, parse_host_res_preference(), and REC_ConfigReadString().
Referenced by ink_hostdb_init().
void ts_session_protocol_well_known_name_indices_init | ( | ) |
Session Protocol initialization.
This must be called before any proxy port parsing is done.
Definition at line 578 of file RecHttp.cc.
References SessionProtocolSet::markAllIn(), SessionProtocolSet::markIn(), SessionProtocolNameRegistry::toIndexConst(), TS_NPN_PROTOCOL_HTTP_0_9, TS_NPN_PROTOCOL_HTTP_1_0, TS_NPN_PROTOCOL_HTTP_1_1, TS_NPN_PROTOCOL_HTTP_2_0, TS_NPN_PROTOCOL_INDEX_HTTP_0_9, TS_NPN_PROTOCOL_INDEX_HTTP_1_0, TS_NPN_PROTOCOL_INDEX_HTTP_1_1, TS_NPN_PROTOCOL_INDEX_HTTP_2_0, TS_NPN_PROTOCOL_INDEX_SPDY_1, TS_NPN_PROTOCOL_INDEX_SPDY_2, TS_NPN_PROTOCOL_INDEX_SPDY_3, TS_NPN_PROTOCOL_INDEX_SPDY_3_1, TS_NPN_PROTOCOL_SPDY_1, TS_NPN_PROTOCOL_SPDY_2, TS_NPN_PROTOCOL_SPDY_3, and TS_NPN_PROTOCOL_SPDY_3_1.
Referenced by main().
Definition at line 63 of file RecHttp.cc.
Definition at line 64 of file RecHttp.cc.
Definition at line 30 of file RecHttp.cc.
Definition at line 62 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor().
Definition at line 60 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor().
Definition at line 61 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor().
const char* const TS_NPN_PROTOCOL_GROUP_HTTP = "http" |
Definition at line 45 of file RecHttp.cc.
Referenced by SessionProtocolNameRegistry::markIn(), and HttpProxyPort::print().
const char* const TS_NPN_PROTOCOL_GROUP_HTTP2 = "http2" |
Definition at line 46 of file RecHttp.cc.
Referenced by SessionProtocolNameRegistry::markIn(), and HttpProxyPort::print().
const char* const TS_NPN_PROTOCOL_GROUP_SPDY = "spdy" |
Definition at line 47 of file RecHttp.cc.
Referenced by SessionProtocolNameRegistry::markIn(), and HttpProxyPort::print().
const char* const TS_NPN_PROTOCOL_HTTP_0_9 = "http/0.9" |
Definition at line 36 of file RecHttp.cc.
Referenced by ts_session_protocol_well_known_name_indices_init().
const char* const TS_NPN_PROTOCOL_HTTP_1_0 = "http/1.0" |
Definition at line 37 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor(), and ts_session_protocol_well_known_name_indices_init().
const char* const TS_NPN_PROTOCOL_HTTP_1_1 = "http/1.1" |
Definition at line 38 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor(), and ts_session_protocol_well_known_name_indices_init().
const char* const TS_NPN_PROTOCOL_HTTP_2_0 = "h2-12" |
Definition at line 39 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor(), and ts_session_protocol_well_known_name_indices_init().
Definition at line 50 of file RecHttp.cc.
Referenced by ts_session_protocol_well_known_name_indices_init().
Definition at line 51 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor(), and ts_session_protocol_well_known_name_indices_init().
Definition at line 52 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor(), and ts_session_protocol_well_known_name_indices_init().
Definition at line 53 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor(), and ts_session_protocol_well_known_name_indices_init().
Definition at line 54 of file RecHttp.cc.
Referenced by ts_session_protocol_well_known_name_indices_init().
Definition at line 55 of file RecHttp.cc.
Referenced by ts_session_protocol_well_known_name_indices_init().
Definition at line 56 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor(), and ts_session_protocol_well_known_name_indices_init().
Definition at line 57 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor(), and ts_session_protocol_well_known_name_indices_init().
const char* const TS_NPN_PROTOCOL_SPDY_1 = "spdy/1" |
Definition at line 40 of file RecHttp.cc.
Referenced by ts_session_protocol_well_known_name_indices_init().
const char* const TS_NPN_PROTOCOL_SPDY_2 = "spdy/2" |
Definition at line 41 of file RecHttp.cc.
Referenced by ts_session_protocol_well_known_name_indices_init().
const char* const TS_NPN_PROTOCOL_SPDY_3 = "spdy/3" |
Definition at line 42 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor(), and ts_session_protocol_well_known_name_indices_init().
const char* const TS_NPN_PROTOCOL_SPDY_3_1 = "spdy/3.1" |
Definition at line 43 of file RecHttp.cc.
Referenced by MakeHttpProxyAcceptor(), and ts_session_protocol_well_known_name_indices_init().