Header-based plugins read or modify the headers of HTTP messages that Traffic Server sends and receives. Reading this chapter will help you to understand the following topics:
The two sample plugins discussed in this chapter are blacklist-1.c and basic-auth.c.
Header-based plugins take actions based on the contents of HTTP request or response headers. Examples include filtering (on the basis of requested URL, source IP address, or other request header), user authentication, or user redirection. Header-based plugins have the following common elements:
This chapter demonstrates how these components are implemented in SDK sample code.