3
This plugin simply reads a file and writes its contents to
6
In a typical Traffic Server installation, this buffer is
7
written to traffic.out.
9
A similar function is used in the append-transform plugin
10
which reads in text from a file, and appends the text to the
11
bodies of html response documents. (See the load function in
14
To use this plugin, you would need a line like this in
17
On NT: File.dll path/to/file.text
18
On Solaris: file-1.so path/to/file.text
20
Enter either an absolute or a relative pathname for the file.
21
If you use a relative pathname, the path must be specified with
22
respect to the Traffic Server install directory. (That is, the path
23
contained in /etc/traffic_server.)
25
The only function defined is TSPluginInit.
27
It does the following:
29
- opens the file specified in plugin.config, using
32
- reads the content of the file into a buffer using
35
- closes the file using