Functions | Variables

RecHttp.cc File Reference

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>
Include dependency graph for RecHttp.cc:

Go to the source code of this file.

Functions

void RecHttpLoadIp (char const *value_name, IpAddr &ip4, IpAddr &ip6)
 Load default inbound IP addresses from the configuration file.
void ts_host_res_global_init ()
 Initialize global values for HttpProxyPort / Host Resolution.
void ts_session_protocol_well_known_name_indices_init ()
 Session Protocol initialization.

Variables

SessionProtocolNameRegistry globalSessionProtocolNameRegistry
const char *const TS_NPN_PROTOCOL_HTTP_0_9 = "http/0.9"
const char *const TS_NPN_PROTOCOL_HTTP_1_0 = "http/1.0"
const char *const TS_NPN_PROTOCOL_HTTP_1_1 = "http/1.1"
const char *const TS_NPN_PROTOCOL_HTTP_2_0 = "h2-12"
const char *const TS_NPN_PROTOCOL_SPDY_1 = "spdy/1"
const char *const TS_NPN_PROTOCOL_SPDY_2 = "spdy/2"
const char *const TS_NPN_PROTOCOL_SPDY_3 = "spdy/3"
const char *const TS_NPN_PROTOCOL_SPDY_3_1 = "spdy/3.1"
const char *const TS_NPN_PROTOCOL_GROUP_HTTP = "http"
const char *const TS_NPN_PROTOCOL_GROUP_HTTP2 = "http2"
const char *const TS_NPN_PROTOCOL_GROUP_SPDY = "spdy"
int TS_NPN_PROTOCOL_INDEX_HTTP_0_9 = SessionProtocolNameRegistry::INVALID
int TS_NPN_PROTOCOL_INDEX_HTTP_1_0 = SessionProtocolNameRegistry::INVALID
int TS_NPN_PROTOCOL_INDEX_HTTP_1_1 = SessionProtocolNameRegistry::INVALID
int TS_NPN_PROTOCOL_INDEX_HTTP_2_0 = SessionProtocolNameRegistry::INVALID
int TS_NPN_PROTOCOL_INDEX_SPDY_1 = SessionProtocolNameRegistry::INVALID
int TS_NPN_PROTOCOL_INDEX_SPDY_2 = SessionProtocolNameRegistry::INVALID
int TS_NPN_PROTOCOL_INDEX_SPDY_3 = SessionProtocolNameRegistry::INVALID
int TS_NPN_PROTOCOL_INDEX_SPDY_3_1 = SessionProtocolNameRegistry::INVALID
SessionProtocolSet HTTP_PROTOCOL_SET
SessionProtocolSet SPDY_PROTOCOL_SET
SessionProtocolSet HTTP2_PROTOCOL_SET
SessionProtocolSet DEFAULT_NON_TLS_SESSION_PROTOCOL_SET
SessionProtocolSet DEFAULT_TLS_SESSION_PROTOCOL_SET

Detailed Description

HTTP configuration support.

License

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.


Function Documentation

void RecHttpLoadIp ( char const *  value_name,
IpAddr ip4,
IpAddr ip6 
)

Load default inbound IP addresses from the configuration file.

Parameters:
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 (  ) 

Variable Documentation

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"
const char* const TS_NPN_PROTOCOL_HTTP_1_1 = "http/1.1"
const char* const TS_NPN_PROTOCOL_HTTP_2_0 = "h2-12"

Definition at line 50 of file RecHttp.cc.

Referenced by 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().

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"
const char* const TS_NPN_PROTOCOL_SPDY_3_1 = "spdy/3.1"