Data Structures | Defines | Typedefs | Enumerations | Variables

HttpSM.h File Reference

A brief file description. More...

#include "libts.h"
#include "P_EventSystem.h"
#include "HttpCacheSM.h"
#include "HttpTransact.h"
#include "HttpTunnel.h"
#include "InkAPIInternal.h"
#include "StatSystem.h"
#include "HttpClientSession.h"
#include "HdrUtils.h"
Include dependency graph for HttpSM.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  HttpVCTableEntry
struct  HttpVCTable
struct  HttpTransformInfo
class  HttpSM
struct  HttpSM::History

Defines

#define LAZY_BUF_ALLOC
#define HTTP_API_CONTINUE   (INK_API_EVENT_EVENTS_START + 0)
#define HTTP_API_ERROR   (INK_API_EVENT_EVENTS_START + 1)
#define HISTORY_SIZE   64

Typedefs

typedef int(HttpSM::* HttpSMHandler )(int event, void *data)

Enumerations

enum  HttpVC_t {
  HTTP_UNKNOWN = 0, HTTP_UA_VC, HTTP_SERVER_VC, HTTP_TRANSFORM_VC,
  HTTP_CACHE_READ_VC, HTTP_CACHE_WRITE_VC, HTTP_RAW_SERVER_VC
}
enum  BackgroundFill_t { BACKGROUND_FILL_NONE = 0, BACKGROUND_FILL_STARTED, BACKGROUND_FILL_ABORTED, BACKGROUND_FILL_COMPLETED }
enum  { HTTP_SM_MAGIC_ALIVE = 0x0000FEED, HTTP_SM_MAGIC_DEAD = 0xDEADFEED }
enum  { HTTP_SM_POST_UNKNOWN = 0, HTTP_SM_POST_UA_FAIL = 1, HTTP_SM_POST_SERVER_FAIL = 2, HTTP_SM_POST_SUCCESS = 3 }
enum  { HTTP_SM_TRANSFORM_OPEN = 0, HTTP_SM_TRANSFORM_CLOSED = 1, HTTP_SM_TRANSFORM_FAIL = 2 }
enum  HttpApiState_t { HTTP_API_NO_CALLOUT, HTTP_API_IN_CALLOUT, HTTP_API_DEFERED_CLOSE, HTTP_API_DEFERED_SERVER_ERROR }
enum  HttpPluginTunnel_t { HTTP_NO_PLUGIN_TUNNEL = 0, HTTP_PLUGIN_AS_SERVER, HTTP_PLUGIN_AS_INTERCEPT }

Variables

static size_t const HTTP_HEADER_BUFFER_SIZE_INDEX = CLIENT_CONNECTION_FIRST_READ_BUFFER_SIZE_INDEX
static size_t const HTTP_SERVER_RESP_HDR_BUFFER_INDEX = BUFFER_SIZE_INDEX_8K
ink_mutex debug_sm_list_mutex

Detailed Description

A brief file description.

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 HttpSM.h.


Define Documentation

#define HISTORY_SIZE   64

Definition at line 146 of file HttpSM.h.

Referenced by HttpSM::dump_state_on_assert().

#define HTTP_API_CONTINUE   (INK_API_EVENT_EVENTS_START + 0)

Definition at line 60 of file HttpSM.h.

Referenced by HttpDebugNames::get_event_name(), and HttpSM::state_api_callout().

#define HTTP_API_ERROR   (INK_API_EVENT_EVENTS_START + 1)

Definition at line 61 of file HttpSM.h.

Referenced by HttpDebugNames::get_event_name(), and HttpSM::state_api_callout().

#define LAZY_BUF_ALLOC

Definition at line 58 of file HttpSM.h.


Typedef Documentation

typedef int(HttpSM::* HttpSMHandler)(int event, void *data)

Definition at line 78 of file HttpSM.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
HTTP_SM_MAGIC_ALIVE 
HTTP_SM_MAGIC_DEAD 

Definition at line 148 of file HttpSM.h.

anonymous enum
Enumerator:
HTTP_SM_POST_UNKNOWN 
HTTP_SM_POST_UA_FAIL 
HTTP_SM_POST_SERVER_FAIL 
HTTP_SM_POST_SUCCESS 

Definition at line 154 of file HttpSM.h.

anonymous enum
Enumerator:
HTTP_SM_TRANSFORM_OPEN 
HTTP_SM_TRANSFORM_CLOSED 
HTTP_SM_TRANSFORM_FAIL 

Definition at line 162 of file HttpSM.h.

Enumerator:
BACKGROUND_FILL_NONE 
BACKGROUND_FILL_STARTED 
BACKGROUND_FILL_ABORTED 
BACKGROUND_FILL_COMPLETED 

Definition at line 86 of file HttpSM.h.

Enumerator:
HTTP_API_NO_CALLOUT 
HTTP_API_IN_CALLOUT 
HTTP_API_DEFERED_CLOSE 
HTTP_API_DEFERED_SERVER_ERROR 

Definition at line 169 of file HttpSM.h.

Enumerator:
HTTP_NO_PLUGIN_TUNNEL 
HTTP_PLUGIN_AS_SERVER 
HTTP_PLUGIN_AS_INTERCEPT 

Definition at line 178 of file HttpSM.h.

enum HttpVC_t
Enumerator:
HTTP_UNKNOWN 
HTTP_UA_VC 
HTTP_SERVER_VC 
HTTP_TRANSFORM_VC 
HTTP_CACHE_READ_VC 
HTTP_CACHE_WRITE_VC 
HTTP_RAW_SERVER_VC 

Definition at line 80 of file HttpSM.h.


Variable Documentation

Definition at line 71 of file HttpSM.cc.

Referenced by HttpSM::init(), init_HttpProxyServer(), and HttpSM::kill_this().

size_t const HTTP_SERVER_RESP_HDR_BUFFER_INDEX = BUFFER_SIZE_INDEX_8K [static]