Apache Traffic Server
7.1
Preface
Getting Started
Administrator’s Guide
Developer’s Guide
Introduction
Release Process
Contributing to Traffic Server
Using Vagrant to Test Traffic Server
Debugging and Analysis
Cache Architecture
Plugin Development
Plugin Development Introduction
Getting Started
Building Plugins
Plugin Configuration
Plugin Management
Actions
Hooks and Transactions
Continuations
Mutexes
IO
HTTP Headers
HTTP Transformations
New Protocol Plugins
Plugin Interfaces
Adding Statistics
Example Plugins
Configuration Variable Implementation
API Reference
Continuous Integration
Documentation
Host Resolution Proposal
Appendices
Apache Traffic Server
Docs
»
Developer’s Guide
»
Plugin Development
View page source
Plugin Development
¶
Plugin Development Introduction
Roadmap
Asynchronous Event Model
Naming Conventions
Getting Started
A Simple Plugin
Plugin Registration and Version Checking
Naming Conventions
Understanding Traffic Server Plugins
Building Plugins
Plugin Configuration
Plugin Management
Settings and Statistics
Logging API
Actions
Hosts Lookup API
Hooks and Transactions
Adding Hooks
HTTP Sessions
HTTP Transactions
Intercepting HTTP Transactions
Initiate HTTP Connection
HTTP Alternate Selection
Hooks
Continuations
Activating Continuations
Writing Handler Functions
Mutexes and Data
Mutexes
Locking Global Data
Protecting a Continuation’s Data
How to Associate a Continuation With Every HTTP Transaction
How to Add the New Continuation
How to Store Data Specific to Each HTTP Transaction
Using Locks
Special Case: Continuations Created for HTTP Transactions
IO
Net Vconnections
Transformations
VIOs
IO Buffers
Cache API
Vconnections
HTTP Headers
Traffic Server HTTP Header System
Header Functions
MIME Headers
Marshal Buffers
URLs
HTTP Transformations
Sample Null Transform Plugin
Append-Transform Plugin
Sample Buffered Null Transform Plugin
Writing Content Transform Plugins
New Protocol Plugins
About the Sample Protocol
Protocol Plugin Structure
Continuations in the Protocol Plugin
Event Flow
One Way to Implement a Transaction State Machine
Processing a Typical Transaction
Plugin Interfaces
TSfopen Family
Memory Allocation
Thread Functions
Debugging Functions
Adding Statistics
Example Plugins
Basic Authorization Plugin
Blacklist Plugin
Query Remap Plugin
Header-Based Plugin Examples
Apache Traffic Server
v: 7.1
Languages
Versions