A brief file description. More...
#include "ink_defs.h"
#include "libts.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "HTTP.h"
#include "HdrToken.h"
#include "Diags.h"
Go to the source code of this file.
A brief file description.
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 HTTP.cc.
#define GETNEXT | ( | label | ) |
{ \ cur += 1; \ if (cur >= end) { \ goto label; \ } \ }
Definition at line 863 of file HTTP.cc.
Referenced by http_parser_parse_req(), and http_parser_parse_resp().
#define GETPREV | ( | label | ) |
{ \ cur -= 1; \ if (cur < line_start) { \ goto label; \ } \ }
Definition at line 870 of file HTTP.cc.
Referenced by http_parser_parse_req().
#define HTTP_STATUS_ENTRY | ( | value, | ||
reason | ||||
) | case value: return #reason |
Referenced by http_hdr_reason_lookup().
#define TRY | ( | x | ) | if (!x) return 0 |
#define TRY | ( | x | ) | if (!x) return 0 |
Referenced by http_hdr_print(), http_version_print(), mime_field_print(), and url_print().
void _http_parser_init | ( | HTTPParser * | parser | ) |
Definition at line 836 of file HTTP.cc.
References HTTPParser::m_parsing_http.
Referenced by http_parser_clear(), and http_parser_init().
void http_hdr_adjust | ( | HTTPHdrImpl * | , | |
int32_t | , | |||
int32_t | , | |||
int32_t | ||||
) |
Definition at line 170 of file HTTP.cc.
References ink_release_assert.
HTTPHdrImpl* http_hdr_clone | ( | HTTPHdrImpl * | s_hh, | |
HdrHeap * | s_heap, | |||
HdrHeap * | d_heap | |||
) |
Definition at line 370 of file HTTP.cc.
References http_hdr_copy_onto(), http_hdr_create(), and HTTPHdrImpl::m_polarity.
Referenced by HTTPHdr::copy(), and TSHttpHdrClone().
void http_hdr_copy_onto | ( | HTTPHdrImpl * | s_hh, | |
HdrHeap * | s_heap, | |||
HTTPHdrImpl * | d_hh, | |||
HdrHeap * | d_heap, | |||
bool | inherit_strs | |||
) |
Definition at line 330 of file HTTP.cc.
References HTTP_TYPE_REQUEST, HTTP_TYPE_UNKNOWN, HdrHeap::inherit_string_heaps(), ink_assert, HTTPHdrImpl::m_fields_impl, HTTPHdrImpl::m_polarity, memcpy, mime_hdr_copy_onto(), HTTPHdrImpl::req, HTTPHdrImpl::u, url_clear(), url_copy_onto(), and url_create().
Referenced by HTTPHdr::copy(), http_hdr_clone(), and TSHttpHdrCopy().
HTTPHdrImpl* http_hdr_create | ( | HdrHeap * | heap, | |
HTTPType | polarity | |||
) |
Definition at line 301 of file HTTP.cc.
References HdrHeap::allocate_obj(), HDR_HEAP_OBJ_HTTP_HEADER, and http_hdr_init().
Referenced by HTTPHdr::create(), and http_hdr_clone().
void http_hdr_describe | ( | HdrHeapObjImpl * | raw, | |
bool | recurse | |||
) |
Definition at line 569 of file HTTP.cc.
References Debug, HTTP_TYPE_REQUEST, HTTPHdrImpl::m_fields_impl, HTTPHdrImpl::m_polarity, HTTPHdrImpl::m_version, obj_describe(), HTTPHdrImpl::req, HTTPHdrImpl::resp, and HTTPHdrImpl::u.
Referenced by obj_describe().
void http_hdr_init | ( | HdrHeap * | heap, | |
HTTPHdrImpl * | hh, | |||
HTTPType | polarity | |||
) |
Definition at line 314 of file HTTP.cc.
References HTTP_TYPE_REQUEST, HTTP_VERSION, HTTPHdrImpl::m_fields_impl, HTTPHdrImpl::m_polarity, HTTPHdrImpl::m_version, mime_hdr_create(), HTTPHdrImpl::req, HTTPHdrImpl::u, and url_create().
Referenced by http_hdr_create().
int http_hdr_length_get | ( | HTTPHdrImpl * | hdr | ) |
Definition at line 600 of file HTTP.cc.
References HTTP_TYPE_REQUEST, HTTP_TYPE_RESPONSE, HTTPHdrImpl::m_fields_impl, HTTPHdrImpl::m_polarity, mime_hdr_length_get(), HTTPHdrImpl::req, HTTPHdrImpl::resp, HTTPHdrImpl::u, and url_length_get().
Referenced by HTTPHdr::length_get().
const char* http_hdr_method_get | ( | HTTPHdrImpl * | hh, | |
int * | length | |||
) |
Definition at line 669 of file HTTP.cc.
References hdrtoken_index_to_length(), hdrtoken_index_to_wks(), HTTP_TYPE_REQUEST, ink_assert, HTTPHdrImpl::m_polarity, HTTPHdrImpl::req, and HTTPHdrImpl::u.
Referenced by HTTPHdr::method_get().
void http_hdr_method_set | ( | HdrHeap * | heap, | |
HTTPHdrImpl * | hh, | |||
const char * | method, | |||
int16_t | method_wks_idx, | |||
int | method_length, | |||
bool | must_copy | |||
) |
Definition at line 690 of file HTTP.cc.
References HTTP_TYPE_REQUEST, ink_assert, HTTPHdrImpl::m_polarity, mime_str_u16_set(), HTTPHdrImpl::req, and HTTPHdrImpl::u.
Referenced by http_parser_parse_req(), and HTTPHdr::method_set().
int http_hdr_print | ( | HdrHeap * | heap, | |
HTTPHdrImpl * | hdr, | |||
char * | buf, | |||
int | bufsize, | |||
int * | bufindex, | |||
int * | dumpoffset | |||
) |
Definition at line 425 of file HTTP.cc.
References http_hdr_status_get(), http_hdr_version_to_string(), HTTP_TYPE_REQUEST, HTTP_TYPE_RESPONSE, http_version_print(), HTTP_WKSIDX_CONNECT, ink_assert, HTTPHdrImpl::m_fields_impl, HTTPHdrImpl::m_polarity, HTTPHdrImpl::m_version, memcpy, mime_format_int(), mime_hdr_print(), mime_mem_print(), HTTPHdrImpl::req, HTTPHdrImpl::resp, TRY, HTTPHdrImpl::u, and url_print().
Referenced by HTTPHdr::print().
const char* http_hdr_reason_get | ( | HTTPHdrImpl * | hh, | |
int * | length | |||
) |
Definition at line 729 of file HTTP.cc.
References HTTP_TYPE_RESPONSE, ink_assert, HTTPHdrImpl::m_polarity, HTTPHdrImpl::resp, and HTTPHdrImpl::u.
Referenced by HTTPHdr::reason_get().
const char* http_hdr_reason_lookup | ( | unsigned | status | ) |
Definition at line 750 of file HTTP.cc.
References Error, HTTP_STATUS_ENTRY, and Status.
Referenced by HttpTransact::build_error_response(), HttpTransact::build_redirect_response(), HttpTransact::build_response(), RangeTransform::change_response_header(), HttpTransact::change_response_header_because_of_range_request(), HttpTransact::HandleApiErrorJump(), and TSHttpHdrReasonLookup().
void http_hdr_reason_set | ( | HdrHeap * | heap, | |
HTTPHdrImpl * | hh, | |||
const char * | value, | |||
int | length, | |||
bool | must_copy | |||
) |
Definition at line 740 of file HTTP.cc.
References HTTP_TYPE_RESPONSE, ink_assert, HTTPHdrImpl::m_polarity, mime_str_u16_set(), HTTPHdrImpl::resp, and HTTPHdrImpl::u.
Referenced by http_parser_parse_resp(), and HTTPHdr::reason_set().
void http_hdr_status_set | ( | HTTPHdrImpl * | hh, | |
HTTPStatus | status | |||
) |
Definition at line 719 of file HTTP.cc.
References HTTP_TYPE_RESPONSE, ink_assert, HTTPHdrImpl::m_polarity, HTTPHdrImpl::resp, and HTTPHdrImpl::u.
Referenced by http_parser_parse_resp(), and HTTPHdr::status_set().
void http_hdr_type_set | ( | HTTPHdrImpl * | hh, | |
HTTPType | type | |||
) |
Definition at line 651 of file HTTP.cc.
References HTTPHdrImpl::m_polarity.
void http_hdr_url_set | ( | HdrHeap * | heap, | |
HTTPHdrImpl * | hh, | |||
URLImpl * | url | |||
) |
Definition at line 703 of file HTTP.cc.
References HdrHeap::deallocate_obj(), HTTP_TYPE_REQUEST, ink_assert, HTTPHdrImpl::m_polarity, HTTPHdrImpl::req, and HTTPHdrImpl::u.
Referenced by TSHttpHdrUrlSet().
void http_hdr_version_set | ( | HTTPHdrImpl * | hh, | |
int32_t | ver | |||
) |
Definition at line 660 of file HTTP.cc.
References HTTPHdrImpl::m_version.
Referenced by http_parser_parse_req(), http_parser_parse_resp(), and HTTPHdr::version_set().
static char* http_hdr_version_to_string | ( | int32_t | version, | |
char * | buf9 | |||
) | [inline, static] |
Definition at line 387 of file HTTP.cc.
References HTTP_MAJOR, HTTP_MINOR, and ink_assert.
Referenced by http_hdr_print(), and http_version_print().
void http_init | ( | ) |
Definition at line 180 of file HTTP.cc.
References hdrtoken_string_to_wks(), hdrtoken_wks_to_index(), hdrtoken_wks_to_length(), HTTP_LEN_100_CONTINUE, HTTP_LEN_BYTES, HTTP_LEN_CHUNKED, HTTP_LEN_CLOSE, HTTP_LEN_COMPRESS, HTTP_LEN_CONNECT, HTTP_LEN_DEFLATE, HTTP_LEN_DELETE, HTTP_LEN_GET, HTTP_LEN_GZIP, HTTP_LEN_HEAD, HTTP_LEN_ICP_QUERY, HTTP_LEN_IDENTITY, HTTP_LEN_KEEP_ALIVE, HTTP_LEN_MAX_AGE, HTTP_LEN_MAX_STALE, HTTP_LEN_MIN_FRESH, HTTP_LEN_MUST_REVALIDATE, HTTP_LEN_NEED_REVALIDATE_ONCE, HTTP_LEN_NO_CACHE, HTTP_LEN_NO_STORE, HTTP_LEN_NO_TRANSFORM, HTTP_LEN_NONE, HTTP_LEN_ONLY_IF_CACHED, HTTP_LEN_OPTIONS, HTTP_LEN_POST, HTTP_LEN_PRIVATE, HTTP_LEN_PROXY_REVALIDATE, HTTP_LEN_PUBLIC, HTTP_LEN_PURGE, HTTP_LEN_PUSH, HTTP_LEN_PUT, HTTP_LEN_S_MAXAGE, HTTP_LEN_TRACE, atscppapi::HTTP_METHOD_CONNECT, atscppapi::HTTP_METHOD_DELETE, atscppapi::HTTP_METHOD_GET, atscppapi::HTTP_METHOD_HEAD, atscppapi::HTTP_METHOD_ICP_QUERY, atscppapi::HTTP_METHOD_OPTIONS, atscppapi::HTTP_METHOD_POST, atscppapi::HTTP_METHOD_PURGE, atscppapi::HTTP_METHOD_PUSH, atscppapi::HTTP_METHOD_PUT, atscppapi::HTTP_METHOD_TRACE, HTTP_VALUE_100_CONTINUE, HTTP_VALUE_BYTES, HTTP_VALUE_CHUNKED, HTTP_VALUE_CLOSE, HTTP_VALUE_COMPRESS, HTTP_VALUE_DEFLATE, HTTP_VALUE_GZIP, HTTP_VALUE_IDENTITY, HTTP_VALUE_KEEP_ALIVE, HTTP_VALUE_MAX_AGE, HTTP_VALUE_MAX_STALE, HTTP_VALUE_MIN_FRESH, HTTP_VALUE_MUST_REVALIDATE, HTTP_VALUE_NEED_REVALIDATE_ONCE, HTTP_VALUE_NO_CACHE, HTTP_VALUE_NO_STORE, HTTP_VALUE_NO_TRANSFORM, HTTP_VALUE_NONE, HTTP_VALUE_ONLY_IF_CACHED, HTTP_VALUE_PRIVATE, HTTP_VALUE_PROXY_REVALIDATE, HTTP_VALUE_PUBLIC, HTTP_VALUE_S_MAXAGE, HTTP_WKSIDX_CONNECT, HTTP_WKSIDX_DELETE, HTTP_WKSIDX_GET, HTTP_WKSIDX_HEAD, HTTP_WKSIDX_ICP_QUERY, HTTP_WKSIDX_METHODS_CNT, HTTP_WKSIDX_OPTIONS, HTTP_WKSIDX_POST, HTTP_WKSIDX_PURGE, HTTP_WKSIDX_PUSH, HTTP_WKSIDX_PUT, HTTP_WKSIDX_TRACE, mime_init(), SIZEOF, and url_init().
Referenced by HdrTest::go(), init_http_header(), and main().
static double http_parse_qvalue | ( | const char *& | buf, | |
int & | len | |||
) | [static] |
Definition at line 1363 of file HTTP.cc.
References http_skip_ws(), ParseRules::is_digit(), and val.
Referenced by http_parse_te().
HTTPStatus http_parse_status | ( | const char * | start, | |
const char * | end | |||
) |
Definition at line 1276 of file HTTP.cc.
References ParseRules::is_digit(), and ParseRules::is_space().
Referenced by http_parser_parse_resp().
Definition at line 1439 of file HTTP.cc.
References Arena::alloc(), HTTPValTE::encoding, http_parse_qvalue(), http_skip_ws(), http_str_store(), HTTPValTE::qvalue, and val.
Referenced by HttpTransact::check_request_validity().
int32_t http_parse_version | ( | const char * | start, | |
const char * | end | |||
) |
Definition at line 1295 of file HTTP.cc.
References HTTP_VERSION, and ParseRules::is_digit().
Referenced by http_parser_parse_req(), and http_parser_parse_resp().
void http_parser_clear | ( | HTTPParser * | parser | ) |
Definition at line 854 of file HTTP.cc.
References _http_parser_init(), HTTPParser::m_mime_parser, and mime_parser_clear().
Referenced by UpdateEntry::BuildHttpRequest(), HttpSM::cleanup(), FetchSM::cleanUp(), request_to_data(), HttpSM::setup_push_read_response_header(), HttpSM::setup_server_read_response_header(), HttpSM::state_read_client_request_header(), HttpSM::state_read_push_response_header(), HttpSM::state_read_server_response_header(), TSHttpParserClear(), and TSHttpParserDestroy().
void http_parser_init | ( | HTTPParser * | parser | ) |
Definition at line 847 of file HTTP.cc.
References _http_parser_init(), HTTPParser::m_mime_parser, and mime_parser_init().
Referenced by HttpSM::attach_client_session(), UpdateEntry::BuildHttpRequest(), HttpSM::init(), FetchSM::init_comm(), request_to_data(), setup_client_request(), HttpUpdateSM::start_scheduled_update(), TSHttpParserCreate(), and UpdateEntry::UpdateEntry().
MIMEParseResult http_parser_parse_req | ( | HTTPParser * | parser, | |
HdrHeap * | heap, | |||
HTTPHdrImpl * | hh, | |||
const char ** | start, | |||
const char * | end, | |||
bool | must_copy_strings, | |||
bool | eof | |||
) |
Definition at line 880 of file HTTP.cc.
References GETNEXT, GETPREV, hdrtoken_tokenize(), hdrtoken_wks_to_index(), http_hdr_method_set(), http_hdr_version_set(), atscppapi::HTTP_METHOD_GET, http_parse_version(), HTTP_VERSION, ink_assert, ParseRules::is_cr(), ParseRules::is_digit(), is_digit(), ParseRules::is_lf(), ParseRules::is_space(), ParseRules::is_ws(), ParseRules::is_wslfcr(), HTTPHdrImpl::m_fields_impl, MIMEScanner::m_line_length, HTTPParser::m_mime_parser, HTTPParser::m_parsing_http, HTTPHdrImpl::m_polarity, MIMEParser::m_scanner, mime_parser_parse(), mime_scanner_get(), MIME_SCANNER_TYPE_LINE, PARSE_CONT, PARSE_DONE, HTTPHdrImpl::req, HTTPHdrImpl::u, and url_parse().
Referenced by HTTPHdr::parse_req().
MIMEParseResult http_parser_parse_resp | ( | HTTPParser * | parser, | |
HdrHeap * | heap, | |||
HTTPHdrImpl * | hh, | |||
const char ** | start, | |||
const char * | end, | |||
bool | must_copy_strings, | |||
bool | eof | |||
) |
Definition at line 1096 of file HTTP.cc.
References GETNEXT, http_hdr_reason_set(), http_hdr_status_set(), http_hdr_version_set(), http_parse_status(), http_parse_version(), HTTP_VERSION, ink_assert, ParseRules::is_cr(), ParseRules::is_digit(), is_digit(), ParseRules::is_lf(), ParseRules::is_space(), ParseRules::is_ws(), HTTPHdrImpl::m_fields_impl, MIMEScanner::m_line_length, HTTPParser::m_mime_parser, HTTPParser::m_parsing_http, HTTPHdrImpl::m_polarity, MIMEParser::m_scanner, mime_parser_parse(), mime_scanner_get(), MIME_SCANNER_TYPE_LINE, PARSE_CONT, and PARSE_DONE.
Referenced by HTTPHdr::parse_resp().
static void http_skip_ws | ( | const char *& | buf, | |
int & | len | |||
) | [static] |
Definition at line 1351 of file HTTP.cc.
References ParseRules::is_ws().
Referenced by http_parse_qvalue(), and http_parse_te().
static char* http_str_store | ( | Arena * | arena, | |
const char * | str, | |||
int | length | |||
) | [static] |
Definition at line 1336 of file HTTP.cc.
References hdrtoken_tokenize(), and Arena::str_store().
Referenced by http_parse_te().
int http_version_print | ( | int32_t | version, | |
char * | buf, | |||
int | bufsize, | |||
int * | bufindex, | |||
int * | dumpoffset | |||
) |
Definition at line 409 of file HTTP.cc.
References http_hdr_version_to_string(), mime_mem_print(), and TRY.
Referenced by http_hdr_print().
static int is_digit | ( | char | c | ) | [inline, static] |
Definition at line 158 of file HTTP.cc.
Referenced by HTTPHdr::_fill_target_cache(), HostDBProcessor::getbyname_imm(), http_parser_parse_req(), http_parser_parse_resp(), and ParentRecord::ProcessParents().
const int HTTP_ALT_MARSHAL_SIZE = ROUND(sizeof(HTTPCacheAlt), HDR_PTR_SIZE) |
Definition at line 147 of file HTTP.cc.
Referenced by http_init(), HttpTransactHeaders::remove_100_continue_headers(), and HttpSM::state_send_server_request_header().
int HTTP_LEN_BYTES |
Definition at line 125 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_CHUNKED |
Definition at line 126 of file HTTP.cc.
Referenced by api_init(), HttpTransact::handle_response_keep_alive_headers(), and http_init().
int HTTP_LEN_CLOSE |
Definition at line 127 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 128 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_CONNECT |
Definition at line 78 of file HTTP.cc.
Referenced by api_init(), HttpTransact::HandleBlindTunnel(), and http_init().
int HTTP_LEN_DEFLATE |
Definition at line 129 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_DELETE |
Definition at line 79 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_GET |
Definition at line 80 of file HTTP.cc.
Referenced by api_init(), HttpTransact::HandlePushResponseHdr(), http_init(), PrefetchBlaster::init(), HttpTransact::merge_and_update_headers_for_cache_update(), and HttpTransact::set_headers_for_cache_write().
int HTTP_LEN_GZIP |
Definition at line 130 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_HEAD |
Definition at line 81 of file HTTP.cc.
Referenced by api_init(), http_init(), and HttpTransact::issue_revalidate().
Definition at line 82 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 131 of file HTTP.cc.
Referenced by api_init(), http_init(), and HttpTransact::perform_accept_encoding_filtering().
Definition at line 132 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_MAX_AGE |
Definition at line 133 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 134 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 135 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 136 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 146 of file HTTP.cc.
Referenced by http_init().
Definition at line 138 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 139 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 140 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_NONE |
Definition at line 137 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 141 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_OPTIONS |
Definition at line 83 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_POST |
Definition at line 84 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_PRIVATE |
Definition at line 142 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 143 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_PUBLIC |
Definition at line 144 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_PURGE |
Definition at line 85 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_PUSH |
Definition at line 88 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_PUT |
Definition at line 86 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 145 of file HTTP.cc.
Referenced by api_init(), and http_init().
int HTTP_LEN_TRACE |
Definition at line 87 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_METHOD_CONNECT |
const char* HTTP_METHOD_DELETE |
const char* HTTP_METHOD_GET |
const char* HTTP_METHOD_HEAD |
const char* HTTP_METHOD_ICP_QUERY |
const char* HTTP_METHOD_OPTIONS |
const char* HTTP_METHOD_POST |
const char* HTTP_METHOD_PURGE |
const char* HTTP_METHOD_PUSH |
const char* HTTP_METHOD_PUT |
const char* HTTP_METHOD_TRACE |
const char* HTTP_VALUE_100_CONTINUE |
Definition at line 112 of file HTTP.cc.
Referenced by http_init(), HttpTransactHeaders::remove_100_continue_headers(), and HttpSM::state_send_server_request_header().
const char* HTTP_VALUE_BYTES |
Definition at line 90 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_CHUNKED |
Definition at line 91 of file HTTP.cc.
Referenced by api_init(), HttpTransact::check_request_validity(), HttpTransact::handle_response_keep_alive_headers(), http_init(), and HttpTransact::initialize_state_variables_from_response().
const char* HTTP_VALUE_CLOSE |
Definition at line 92 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_COMPRESS |
Definition at line 93 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_DEFLATE |
Definition at line 94 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_GZIP |
Definition at line 95 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_IDENTITY |
Definition at line 96 of file HTTP.cc.
Referenced by api_init(), HttpTransact::check_request_validity(), http_init(), and HttpTransact::perform_accept_encoding_filtering().
const char* HTTP_VALUE_KEEP_ALIVE |
Definition at line 97 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_MAX_AGE |
Definition at line 98 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_MAX_STALE |
Definition at line 99 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_MIN_FRESH |
Definition at line 100 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_MUST_REVALIDATE |
Definition at line 101 of file HTTP.cc.
Referenced by api_init(), HttpTransact::AuthenticationNeeded(), and http_init().
const char* HTTP_VALUE_NEED_REVALIDATE_ONCE |
Definition at line 111 of file HTTP.cc.
Referenced by http_init().
const char* HTTP_VALUE_NO_CACHE |
Definition at line 103 of file HTTP.cc.
Referenced by api_init(), HttpTransact::does_client_request_permit_cached_response(), HttpTransact::does_client_request_permit_dns_caching(), HttpTransact::HandleCacheOpenReadHit(), HttpTransact::HandleCacheOpenReadMiss(), http_init(), and HttpTransact::issue_revalidate().
const char* HTTP_VALUE_NO_STORE |
Definition at line 104 of file HTTP.cc.
Referenced by api_init(), HttpTransact::does_client_request_permit_storing(), and http_init().
const char* HTTP_VALUE_NO_TRANSFORM |
Definition at line 105 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_NONE |
Definition at line 102 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_ONLY_IF_CACHED |
Definition at line 106 of file HTTP.cc.
Referenced by api_init(), HttpTransact::HandleCacheOpenReadMiss(), and http_init().
const char* HTTP_VALUE_PRIVATE |
Definition at line 107 of file HTTP.cc.
Referenced by api_init(), and http_init().
const char* HTTP_VALUE_PROXY_REVALIDATE |
Definition at line 108 of file HTTP.cc.
Referenced by api_init(), HttpTransact::AuthenticationNeeded(), and http_init().
const char* HTTP_VALUE_PUBLIC |
Definition at line 109 of file HTTP.cc.
Referenced by api_init(), HttpTransact::AuthenticationNeeded(), do_cookies_prevent_caching(), and http_init().
const char* HTTP_VALUE_S_MAXAGE |
Definition at line 110 of file HTTP.cc.
Referenced by api_init(), and http_init().
Definition at line 65 of file HTTP.cc.
Referenced by HttpTransact::build_error_response(), HttpTransact::check_request_validity(), HttpSM::do_http_server_open(), find_server_and_update_current_info(), HttpTransact::handle_no_cache_operation_on_forward_server_response(), how_to_open_connection(), http_hdr_print(), http_init(), HttpTransact::initialize_state_variables_from_request(), HttpTransactHeaders::is_this_http_method_supported(), HttpTransactHeaders::is_this_method_supported(), AclRecord::MethodIdxToMask(), HttpTransact::ModifyRequest(), UrlRewrite::PerformACLFiltering(), IpAllow::Print(), acl_filter_rule::print(), remap_validate_filter_args(), and RemapPlugins::run_single_remap().
Definition at line 66 of file HTTP.cc.
Referenced by cache_op_ClusterFunction(), HttpTransact::delete_all_document_alternates_and_return(), does_method_require_cache_copy_deletion(), HttpTransact::handle_request_keep_alive_headers(), http_init(), HttpTransact::initialize_state_variables_from_request(), HttpTransactHeaders::is_method_cache_lookupable(), HttpTransactHeaders::is_this_http_method_supported(), and remap_validate_filter_args().
int HTTP_WKSIDX_GET |
Definition at line 67 of file HTTP.cc.
Referenced by HttpTransact::AuthenticationNeeded(), HttpTransact::build_response_from_cache(), HttpTransact::check_request_validity(), HttpTransactHeaders::convert_to_0_9_request_header(), HttpTransact::delete_all_document_alternates_and_return(), HttpSM::do_cache_prepare_update(), HttpSM::do_range_setup_if_necessary(), does_method_require_cache_copy_deletion(), HttpTransactHeaders::downgrade_request(), HttpTransact::handle_internal_request(), HttpTransact::handle_request_keep_alive_headers(), HttpTransact::handle_upgrade_request(), http_init(), HttpTransact::initialize_state_variables_from_request(), HttpTransactHeaders::is_method_cache_lookupable(), HttpTransactHeaders::is_method_cacheable(), is_request_conditional(), HttpTransact::is_request_likely_cacheable(), HttpTransactHeaders::is_this_http_method_supported(), HttpTransactHeaders::is_this_method_supported(), HttpTransact::issue_revalidate(), remap_validate_filter_args(), and HttpTransact::StartRemapRequest().
int HTTP_WKSIDX_HEAD |
Definition at line 68 of file HTTP.cc.
Referenced by HttpTransact::build_response_from_cache(), HttpTransact::handle_cache_operation_on_forward_server_response(), HttpTransact::handle_request_keep_alive_headers(), http_init(), HttpTransact::initialize_state_variables_from_request(), HttpTransactHeaders::is_method_cache_lookupable(), HttpTransactHeaders::is_method_cacheable(), is_request_conditional(), is_response_body_precluded(), HttpTransactHeaders::is_this_http_method_supported(), HttpTransact::issue_revalidate(), HttpTransact::merge_and_update_headers_for_cache_update(), HttpSM::release_server_session(), remap_validate_filter_args(), and HttpSM::setup_internal_transfer().
Definition at line 69 of file HTTP.cc.
Referenced by http_init(), and remap_validate_filter_args().
int HTTP_WKSIDX_METHODS_CNT = 0 |
Definition at line 76 of file HTTP.cc.
Referenced by http_init(), and IpAllow::Print().
Definition at line 70 of file HTTP.cc.
Referenced by HttpTransact::handle_request_keep_alive_headers(), HttpTransact::handle_trace_and_options_requests(), http_init(), HttpTransact::initialize_state_variables_from_request(), HttpTransactHeaders::is_this_http_method_supported(), and remap_validate_filter_args().
int HTTP_WKSIDX_POST |
Definition at line 71 of file HTTP.cc.
Referenced by HttpSM::attach_server_session(), HttpTransact::check_request_validity(), HttpSM::do_http_server_open(), does_method_require_cache_copy_deletion(), http_init(), HttpTransact::initialize_state_variables_from_request(), HttpTransactHeaders::is_method_cache_lookupable(), HttpTransactHeaders::is_method_cacheable(), HttpTransact::is_response_cacheable(), HttpTransactHeaders::is_this_http_method_supported(), HttpTunnel::producer_handler(), remap_validate_filter_args(), HttpSM::state_read_client_request_header(), and HttpSM::tunnel_handler_ua().
Definition at line 72 of file HTTP.cc.
Referenced by cache_op_ClusterFunction(), HttpTransactCache::calculate_quality_of_match(), HttpTransact::delete_all_document_alternates_and_return(), does_method_require_cache_copy_deletion(), HttpTransact::handle_request_keep_alive_headers(), http_init(), HttpTransact::initialize_state_variables_from_request(), HttpTransactHeaders::is_method_cache_lookupable(), HttpTransactHeaders::is_this_http_method_supported(), and remap_validate_filter_args().
int HTTP_WKSIDX_PUSH |
Definition at line 75 of file HTTP.cc.
Referenced by HttpTransact::check_request_validity(), HttpTransact::DecideCacheLookup(), HttpTransact::handle_response_keep_alive_headers(), HttpTransact::HandleCacheOpenRead(), HttpTransact::HandleFiltering(), http_init(), HttpTransact::initialize_state_variables_from_request(), HttpTransactHeaders::is_method_cache_lookupable(), HttpTransactHeaders::is_this_http_method_supported(), remap_validate_filter_args(), HttpSM::setup_push_read_response_header(), and HttpTransact::update_size_and_time_stats().
int HTTP_WKSIDX_PUT |
Definition at line 73 of file HTTP.cc.
Referenced by HttpSM::attach_server_session(), HttpTransact::check_request_validity(), HttpSM::do_http_server_open(), does_method_require_cache_copy_deletion(), http_init(), HttpTransact::initialize_state_variables_from_request(), HttpTransactHeaders::is_method_cache_lookupable(), HttpTransactHeaders::is_this_http_method_supported(), and remap_validate_filter_args().
Definition at line 74 of file HTTP.cc.
Referenced by HttpTransact::check_request_validity(), HttpSM::handle_http_server_open(), HttpTransact::handle_request_keep_alive_headers(), HttpTransact::handle_trace_and_options_requests(), http_init(), HttpTransact::initialize_state_variables_from_request(), HttpTransactHeaders::is_this_http_method_supported(), remap_validate_filter_args(), HttpSM::state_read_client_request_header(), and HttpSM::state_send_server_request_header().
ClassAllocator<HTTPCacheAlt> httpCacheAltAllocator("httpCacheAltAllocator") |
Referenced by HTTPInfo::create(), and HTTPCacheAlt::destroy().