table of contents
other versions
- jessie-backports 7.0.0-4~bpo8+1
- stretch 7.0.0-6+deb9u2
- testing 8.0.2+ds-1
- stretch-backports 7.1.6+ds-1~bpo9+1
- unstable 8.0.2+ds-1
TSHTTPTXNERRORBODYSET(3ts) | Apache Traffic Server | TSHTTPTXNERRORBODYSET(3ts) |
NAME¶
TSHttpTxnErrorBodySet - sets an error type body to a transactionSYNOPSIS¶
#include <ts/ts.h>- void TSHttpTxnErrorBodySet(TSHttpTxn txnp, char * buf, size_t buflength, char * mimetype)
DESCRIPTION¶
Note that both string arguments must be allocated with TSmalloc() or TSstrdup(). The mimetype is optional, and if not provided it defaults to text/html. Sending an empty string would prevent setting a content type header (but that is not adviced).COPYRIGHT¶
2015, dev@trafficserver.apache.orgJanuary 24, 2017 | 7.0 |