Apache Traffic Server
8.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
Threads and Event Processing
Cache Architecture
Logging Architecture
Internal libraries
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
An Overview Client Sessions and Transactions
Core Architecture
Appendices
Apache Traffic Server
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
TLS User Agent Hooks
TLS Session Plugin API
Utility Functions
Example Use Case
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
TLS Bridge
Header-Based Plugin Examples
Apache Traffic Server
v: 8.1
Languages
Versions