ApacheTrafficServer  3.3.0-dev
Data Structures | Defines | Typedefs | Functions | Variables
InkAPI.cc File Reference

Implements callin functions for TSAPI plugins. More...

#include <stdio.h>
#include "libts.h"
#include "I_Layout.h"
#include "ts.h"
#include "InkAPIInternal.h"
#include "Log.h"
#include "URL.h"
#include "MIME.h"
#include "HTTP.h"
#include "HttpClientSession.h"
#include "HttpServerSession.h"
#include "HttpSM.h"
#include "HttpConfig.h"
#include "P_Net.h"
#include "P_UDPNet.h"
#include "P_HostDB.h"
#include "StatSystem.h"
#include "P_Cache.h"
#include "I_RecCore.h"
#include "I_RecSignals.h"
#include "ProxyConfig.h"
#include "Plugin.h"
#include "LogObject.h"
#include "LogConfig.h"
#include "PluginVC.h"
#include "api/ts/experimental.h"
#include "ICP.h"
#include "HttpAccept.h"
#include "FetchSM.h"
#include "HttpDebugNames.h"
#include "I_AIO.h"
#include "I_Tasks.h"
#include "I_RecDefs.h"
#include "HttpProxyServerMain.h"
Include dependency graph for InkAPI.cc:

Data Structures

struct  _STATE_ARG_TABLE
class  TSHttpSsnCallback
class  TSHttpSMCallback

Defines

#define SET_HTTP_HDR(_HDR, _BUF_PTR, _OBJ_PTR)
#define sdk_assert(EX)   (void)((EX) || (_TSReleaseAssert(#EX, __FILE__, __LINE__)))

Typedefs

typedef const char *(URL::* URLPartGetF )(int *length)
typedef void(URL::* URLPartSetF )(const char *value, int length)

Functions

void TSError (const char *fmt,...)
int _TSReleaseAssert (const char *text, const char *file, int line)
int _TSAssert (const char *text, const char *file, int line)
MIMEHdrImpl_hdr_obj_to_mime_hdr_impl (HdrHeapObjImpl *obj)
MIMEHdrImpl_hdr_mloc_to_mime_hdr_impl (TSMLoc mloc)
TSReturnCode sdk_sanity_check_field_handle (TSMLoc field, TSMLoc parent_hdr=NULL)
TSReturnCode sdk_sanity_check_mbuffer (TSMBuffer bufp)
TSReturnCode sdk_sanity_check_mime_hdr_handle (TSMLoc field)
TSReturnCode sdk_sanity_check_url_handle (TSMLoc field)
TSReturnCode sdk_sanity_check_http_hdr_handle (TSMLoc field)
TSReturnCode sdk_sanity_check_continuation (TSCont cont)
TSReturnCode sdk_sanity_check_http_ssn (TSHttpSsn ssnp)
TSReturnCode sdk_sanity_check_txn (TSHttpTxn txnp)
TSReturnCode sdk_sanity_check_mime_parser (TSMimeParser parser)
TSReturnCode sdk_sanity_check_http_parser (TSHttpParser parser)
TSReturnCode sdk_sanity_check_alt_info (TSHttpAltInfo info)
TSReturnCode sdk_sanity_check_hook_id (TSHttpHookID id)
TSReturnCode sdk_sanity_check_null_ptr (void *ptr)
bool isWriteable (TSMBuffer bufp)
 The function checks if the buffer is Modifiable and returns true if it is modifiable, else returns false.
static MIMEFieldSDKHandlesdk_alloc_field_handle (TSMBuffer bufp, MIMEHdrImpl *mh)
static void sdk_free_field_handle (TSMBuffer bufp, MIMEFieldSDKHandle *field_handle)
void api_init ()
void * _TSmalloc (size_t size, const char *path)
void * _TSrealloc (void *ptr, size_t size, const char *path)
char * _TSstrdup (const char *str, int64_t length, const char *path)
size_t _TSstrlcpy (char *dst, const char *str, size_t siz)
size_t _TSstrlcat (char *dst, const char *str, size_t siz)
void _TSfree (void *ptr)
TSReturnCode TSBase64Decode (const char *str, size_t str_len, unsigned char *dst, size_t dst_size, size_t *length)
TSReturnCode TSBase64Encode (const char *str, size_t str_len, char *dst, size_t dst_size, size_t *length)
unsigned int TSrandom ()
double TSdrandom ()
ink_hrtime TShrtime ()
const char * TSInstallDirGet (void)
 Gets the path of the directory in which Traffic Server is installed.
const char * TSConfigDirGet (void)
 Gets the path of the directory of Traffic Server configuration.
const char * TSTrafficServerVersionGet (void)
 Gets the version of Traffic Server currently running.
int TSTrafficServerVersionGetMajor ()
 Get the major version of Traffic Server currently running.
int TSTrafficServerVersionGetMinor ()
 Get the minor version of Traffic Server currently running.
int TSTrafficServerVersionGetPatch ()
 Get the patch version of Traffic Server currently running.
const char * TSPluginDirGet (void)
 Gets the path of the plugin directory relative to the Traffic Server install directory.
TSReturnCode TSPluginRegister (TSSDKVersion sdk_version, TSPluginRegistrationInfo *plugin_info)
 This function registers your plugin with a particular version of Traffic Server SDK.
TSFile TSfopen (const char *filename, const char *mode)
 Opens a file for reading or writing and returns a descriptor for accessing the file.
void TSfclose (TSFile filep)
 Closes the file to which filep points and frees the data structures and buffers associated with it.
size_t TSfread (TSFile filep, void *buf, size_t length)
 Attempts to read length bytes of data from the file pointed to by filep into the buffer buf.
size_t TSfwrite (TSFile filep, const void *buf, size_t length)
 Attempts to write length bytes of data from the buffer buf to the file filep.
void TSfflush (TSFile filep)
 Flushes pending data that has been buffered up in memory from previous calls to TSfwrite().
char * TSfgets (TSFile filep, char *buf, size_t length)
 Reads a line from the file pointed to by filep into the buffer buf.
TSReturnCode TSHandleMLocRelease (TSMBuffer bufp, TSMLoc parent, TSMLoc mloc)
 Releases the TSMLoc mloc created from the TSMLoc parent.
TSMBuffer TSMBufferCreate (void)
 Creates a new marshal buffer and initializes the reference count to 1.
TSReturnCode TSMBufferDestroy (TSMBuffer bufp)
 Ignores the reference count and destroys the marshal buffer bufp.
TSReturnCode TSUrlCreate (TSMBuffer bufp, TSMLoc *locp)
 Creates a new URL within the marshal buffer bufp.
TSReturnCode TSUrlDestroy (TSMBuffer bufp, TSMLoc url_loc)
 Destroys the URL located at url_loc within the marshal buffer bufp.
TSReturnCode TSUrlClone (TSMBuffer dest_bufp, TSMBuffer src_bufp, TSMLoc src_url, TSMLoc *locp)
 Copies the URL located at src_url within src_bufp to a URL location within the marshal buffer dest_bufp, and returns the TSMLoc location of the copied URL.
TSReturnCode TSUrlCopy (TSMBuffer dest_bufp, TSMLoc dest_obj, TSMBuffer src_bufp, TSMLoc src_obj)
 Copies the contents of the URL at lcoation src_loc within the marshal buffer src_bufp to the location dest_loc within the marshal buffer dest_bufp.
void TSUrlPrint (TSMBuffer bufp, TSMLoc obj, TSIOBuffer iobufp)
 Formats a URL stored in an TSMBuffer into an TSIOBuffer.
TSParseResult TSUrlParse (TSMBuffer bufp, TSMLoc obj, const char **start, const char *end)
 Parses a URL.
int TSUrlLengthGet (TSMBuffer bufp, TSMLoc obj)
 Calculates the length of the URL located at url_loc within the marshal buffer bufp if it were returned as a string.
char * TSUrlStringGet (TSMBuffer bufp, TSMLoc obj, int *length)
 Constructs a string representation of the URL located at url_loc within bufp.
static const char * URLPartGet (TSMBuffer bufp, TSMLoc obj, int *length, URLPartGetF url_f)
static TSReturnCode URLPartSet (TSMBuffer bufp, TSMLoc obj, const char *value, int length, URLPartSetF url_f)
const char * TSUrlSchemeGet (TSMBuffer bufp, TSMLoc obj, int *length)
 Retrieves the scheme portion of the URL located at url_loc within the marshal buffer bufp.
TSReturnCode TSUrlSchemeSet (TSMBuffer bufp, TSMLoc obj, const char *value, int length)
 Sets the scheme portion of the URL located at url_loc within the marshal buffer bufp to the string value.
const char * TSUrlUserGet (TSMBuffer bufp, TSMLoc obj, int *length)
 Retrieves the user portion of the URL located at url_loc within bufp.
TSReturnCode TSUrlUserSet (TSMBuffer bufp, TSMLoc obj, const char *value, int length)
 Sets the user portion of the URL located at url_loc within bufp to the string value.
const char * TSUrlPasswordGet (TSMBuffer bufp, TSMLoc obj, int *length)
 Retrieves the password portion of the URL located at url_loc within bufp.
TSReturnCode TSUrlPasswordSet (TSMBuffer bufp, TSMLoc obj, const char *value, int length)
 Sets the password portion of the URL located at url_loc within bufp to the string value.
const char * TSUrlHostGet (TSMBuffer bufp, TSMLoc obj, int *length)
 Retrieves the host portion of the URL located at url_loc within bufp.
TSReturnCode TSUrlHostSet (TSMBuffer bufp, TSMLoc obj, const char *value, int length)
 Sets the host portion of the URL at url_loc to the string value.
int TSUrlPortGet (TSMBuffer bufp, TSMLoc obj)
 Retrieves the port portion of the URL located at url_loc.
TSReturnCode TSUrlPortSet (TSMBuffer bufp, TSMLoc obj, int port)
 Sets the port portion of the URL located at url_loc.
const char * TSUrlPathGet (TSMBuffer bufp, TSMLoc obj, int *length)
 Retrieves the path portion of the URL located at url_loc within bufp.
TSReturnCode TSUrlPathSet (TSMBuffer bufp, TSMLoc obj, const char *value, int length)
 Sets the path portion of the URL located at url_loc within bufp to the string value.
int TSUrlFtpTypeGet (TSMBuffer bufp, TSMLoc obj)
 Retrieves the FTP type of the URL located at url_loc within bufp.
TSReturnCode TSUrlFtpTypeSet (TSMBuffer bufp, TSMLoc obj, int type)
 Sets the FTP type portion of the URL located at url_loc within bufp to the value type.
const char * TSUrlHttpParamsGet (TSMBuffer bufp, TSMLoc obj, int *length)
 Retrieves the HTTP params portion of the URL located at url_loc within bufp.
TSReturnCode TSUrlHttpParamsSet (TSMBuffer bufp, TSMLoc obj, const char *value, int length)
 Sets the HTTP params portion of the URL located at url_loc within bufp to the string value.
const char * TSUrlHttpQueryGet (TSMBuffer bufp, TSMLoc obj, int *length)
 Retrieves the HTTP query portion of the URL located at url_loc within bufp.
TSReturnCode TSUrlHttpQuerySet (TSMBuffer bufp, TSMLoc obj, const char *value, int length)
 Sets the HTTP query portion of the URL located at url_loc within bufp to value.
const char * TSUrlHttpFragmentGet (TSMBuffer bufp, TSMLoc obj, int *length)
 Retrieves the HTTP fragment portion of the URL located at url_loc within bufp.
TSReturnCode TSUrlHttpFragmentSet (TSMBuffer bufp, TSMLoc obj, const char *value, int length)
 Sets the HTTP fragment portion of the URL located at url_loc within bufp to value.
TSReturnCode TSStringPercentEncode (const char *str, int str_len, char *dst, size_t dst_size, size_t *length, const unsigned char *map)
 Perform percent-encoding of the string in the buffer, storing the new string in the destination buffer.
TSReturnCode TSStringPercentDecode (const char *str, size_t str_len, char *dst, size_t dst_size, size_t *length)
 Perform percent-decoding of the string in the buffer, writing to the output buffer.
TSReturnCode TSUrlPercentEncode (TSMBuffer bufp, TSMLoc obj, char *dst, size_t dst_size, size_t *length, const unsigned char *map)
 Similar to TSStringPercentEncode(), but works on a URL object.
TSMimeParser TSMimeParserCreate (void)
 Creates a MIME parser.
void TSMimeParserClear (TSMimeParser parser)
 Clears the specified MIME parser so that it can be used again.
void TSMimeParserDestroy (TSMimeParser parser)
 Destroys the specified MIME parser and frees the associated memory.
TSReturnCode TSMimeHdrCreate (TSMBuffer bufp, TSMLoc *locp)
 Creates a new MIME header within bufp.
TSReturnCode TSMimeHdrDestroy (TSMBuffer bufp, TSMLoc obj)
 Destroys the MIME header located at hdr_loc within bufp.
TSReturnCode TSMimeHdrClone (TSMBuffer dest_bufp, TSMBuffer src_bufp, TSMLoc src_hdr, TSMLoc *locp)
 Copies a specified MIME header to a specified marshal buffer, and returns the location of the copied MIME header within the destination marshal buffer.
TSReturnCode TSMimeHdrCopy (TSMBuffer dest_bufp, TSMLoc dest_obj, TSMBuffer src_bufp, TSMLoc src_obj)
 Copies the contents of the MIME header located at src_loc within src_bufp to the MIME header located at dest_loc within dest_bufp.
void TSMimeHdrPrint (TSMBuffer bufp, TSMLoc obj, TSIOBuffer iobufp)
 Formats the MIME header located at hdr_loc within bufp into the TSIOBuffer iobufp.
TSParseResult TSMimeHdrParse (TSMimeParser parser, TSMBuffer bufp, TSMLoc obj, const char **start, const char *end)
 Parses a MIME header.
int TSMimeHdrLengthGet (TSMBuffer bufp, TSMLoc obj)
 Calculates the length of the MIME header located at hdr_loc if it were returned as a string.
TSReturnCode TSMimeHdrFieldsClear (TSMBuffer bufp, TSMLoc obj)
 Removes and destroys all the MIME fields within the MIME header located at hdr_loc within the marshal buffer bufp.
int TSMimeHdrFieldsCount (TSMBuffer bufp, TSMLoc obj)
 Returns a count of the number of MIME fields within the MIME header located at hdr_loc within the marshal buffer bufp.
const char * TSMimeFieldValueGet (TSMBuffer bufp, TSMLoc field_obj, int idx, int *value_len_ptr)
void TSMimeFieldValueSet (TSMBuffer bufp, TSMLoc field_obj, int idx, const char *value, int length)
void TSMimeFieldValueInsert (TSMBuffer bufp, TSMLoc field_obj, const char *value, int length, int idx)
int TSMimeHdrFieldEqual (TSMBuffer bufp, TSMLoc hdr_obj, TSMLoc field1_obj, TSMLoc field2_obj)
TSMLoc TSMimeHdrFieldGet (TSMBuffer bufp, TSMLoc hdr_obj, int idx)
 Retrieves the location of a specified MIME field within the MIME header located at hdr_loc within bufp.
TSMLoc TSMimeHdrFieldFind (TSMBuffer bufp, TSMLoc hdr_obj, const char *name, int length)
 Retrieves the TSMLoc location of a specfied MIME field from within the MIME header located at hdr.
TSReturnCode TSMimeHdrFieldAppend (TSMBuffer bufp, TSMLoc mh_mloc, TSMLoc field_mloc)
 Returns the TSMLoc location of a specified MIME field from within the MIME header located at hdr.
TSReturnCode TSMimeHdrFieldRemove (TSMBuffer bufp, TSMLoc mh_mloc, TSMLoc field_mloc)
 Removes the MIME field located at field within bufp from the header located at hdr within bufp.
TSReturnCode TSMimeHdrFieldDestroy (TSMBuffer bufp, TSMLoc mh_mloc, TSMLoc field_mloc)
 Destroys the MIME field located at field within bufp.
TSReturnCode TSMimeHdrFieldCreate (TSMBuffer bufp, TSMLoc mh_mloc, TSMLoc *locp)
TSReturnCode TSMimeHdrFieldCreateNamed (TSMBuffer bufp, TSMLoc mh_mloc, const char *name, int name_len, TSMLoc *locp)
TSReturnCode TSMimeHdrFieldCopy (TSMBuffer dest_bufp, TSMLoc dest_hdr, TSMLoc dest_field, TSMBuffer src_bufp, TSMLoc src_hdr, TSMLoc src_field)
TSReturnCode TSMimeHdrFieldClone (TSMBuffer dest_bufp, TSMLoc dest_hdr, TSMBuffer src_bufp, TSMLoc src_hdr, TSMLoc src_field, TSMLoc *locp)
TSReturnCode TSMimeHdrFieldCopyValues (TSMBuffer dest_bufp, TSMLoc dest_hdr, TSMLoc dest_field, TSMBuffer src_bufp, TSMLoc src_hdr, TSMLoc src_field)
TSMLoc TSMimeHdrFieldNext (TSMBuffer bufp, TSMLoc hdr, TSMLoc field)
TSMLoc TSMimeHdrFieldNextDup (TSMBuffer bufp, TSMLoc hdr, TSMLoc field)
int TSMimeHdrFieldLengthGet (TSMBuffer bufp, TSMLoc hdr, TSMLoc field)
const char * TSMimeHdrFieldNameGet (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int *length)
TSReturnCode TSMimeHdrFieldNameSet (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, const char *name, int length)
TSReturnCode TSMimeHdrFieldValuesClear (TSMBuffer bufp, TSMLoc hdr, TSMLoc field)
int TSMimeHdrFieldValuesCount (TSMBuffer bufp, TSMLoc hdr, TSMLoc field)
const char * TSMimeHdrFieldValueStringGet (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx, int *value_len_ptr)
time_t TSMimeHdrFieldValueDateGet (TSMBuffer bufp, TSMLoc hdr, TSMLoc field)
int TSMimeHdrFieldValueIntGet (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx)
int64_t TSMimeHdrFieldValueInt64Get (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx)
unsigned int TSMimeHdrFieldValueUintGet (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx)
TSReturnCode TSMimeHdrFieldValueStringSet (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx, const char *value, int length)
TSReturnCode TSMimeHdrFieldValueDateSet (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, time_t value)
TSReturnCode TSMimeHdrFieldValueIntSet (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx, int value)
TSReturnCode TSMimeHdrFieldValueInt64Set (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx, int64_t value)
TSReturnCode TSMimeHdrFieldValueUintSet (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx, unsigned int value)
TSReturnCode TSMimeHdrFieldValueAppend (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx, const char *value, int length)
TSReturnCode TSMimeHdrFieldValueStringInsert (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx, const char *value, int length)
TSReturnCode TSMimeHdrFieldValueIntInsert (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx, int value)
TSReturnCode TSMimeHdrFieldValueUintInsert (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx, unsigned int value)
TSReturnCode TSMimeHdrFieldValueDateInsert (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, time_t value)
TSReturnCode TSMimeHdrFieldValueDelete (TSMBuffer bufp, TSMLoc hdr, TSMLoc field, int idx)
TSHttpParser TSHttpParserCreate (void)
void TSHttpParserClear (TSHttpParser parser)
void TSHttpParserDestroy (TSHttpParser parser)
TSMLoc TSHttpHdrCreate (TSMBuffer bufp)
void TSHttpHdrDestroy (TSMBuffer bufp, TSMLoc obj)
 Destroys the HTTP header located at hdr_loc within the marshal buffer bufp.
TSReturnCode TSHttpHdrClone (TSMBuffer dest_bufp, TSMBuffer src_bufp, TSMLoc src_hdr, TSMLoc *locp)
TSReturnCode TSHttpHdrCopy (TSMBuffer dest_bufp, TSMLoc dest_obj, TSMBuffer src_bufp, TSMLoc src_obj)
 Copies the contents of the HTTP header located at src_loc within src_bufp to the HTTP header located at dest_loc within dest_bufp.
void TSHttpHdrPrint (TSMBuffer bufp, TSMLoc obj, TSIOBuffer iobufp)
TSParseResult TSHttpHdrParseReq (TSHttpParser parser, TSMBuffer bufp, TSMLoc obj, const char **start, const char *end)
 Parses an HTTP request header.
TSParseResult TSHttpHdrParseResp (TSHttpParser parser, TSMBuffer bufp, TSMLoc obj, const char **start, const char *end)
int TSHttpHdrLengthGet (TSMBuffer bufp, TSMLoc obj)
TSHttpType TSHttpHdrTypeGet (TSMBuffer bufp, TSMLoc obj)
TSReturnCode TSHttpHdrTypeSet (TSMBuffer bufp, TSMLoc obj, TSHttpType type)
int TSHttpHdrVersionGet (TSMBuffer bufp, TSMLoc obj)
TSReturnCode TSHttpHdrVersionSet (TSMBuffer bufp, TSMLoc obj, int ver)
const char * TSHttpHdrMethodGet (TSMBuffer bufp, TSMLoc obj, int *length)
TSReturnCode TSHttpHdrMethodSet (TSMBuffer bufp, TSMLoc obj, const char *value, int length)
TSReturnCode TSHttpHdrUrlGet (TSMBuffer bufp, TSMLoc obj, TSMLoc *locp)
TSReturnCode TSHttpHdrUrlSet (TSMBuffer bufp, TSMLoc obj, TSMLoc url)
TSHttpStatus TSHttpHdrStatusGet (TSMBuffer bufp, TSMLoc obj)
TSReturnCode TSHttpHdrStatusSet (TSMBuffer bufp, TSMLoc obj, TSHttpStatus status)
const char * TSHttpHdrReasonGet (TSMBuffer bufp, TSMLoc obj, int *length)
TSReturnCode TSHttpHdrReasonSet (TSMBuffer bufp, TSMLoc obj, const char *value, int length)
const char * TSHttpHdrReasonLookup (TSHttpStatus status)
TSReturnCode sdk_sanity_check_cachekey (TSCacheKey key)
TSCacheKey TSCacheKeyCreate (void)
 Creates (allocates memory for) a new cache key.
TSReturnCode TSCacheKeyDigestSet (TSCacheKey key, const char *input, int length)
 Generates a key for an object to be cached (written to the cache).
TSReturnCode TSCacheKeyDigestFromUrlSet (TSCacheKey key, TSMLoc url)
TSReturnCode TSCacheKeyDataTypeSet (TSCacheKey key, TSCacheDataType type)
TSReturnCode TSCacheKeyHostNameSet (TSCacheKey key, const char *hostname, int host_len)
 Associates a host name to the cache key.
TSReturnCode TSCacheKeyPinnedSet (TSCacheKey key, time_t pin_in_cache)
TSReturnCode TSCacheKeyDestroy (TSCacheKey key)
 Destroys a cache key.
TSCacheHttpInfo TSCacheHttpInfoCopy (TSCacheHttpInfo infop)
void TSCacheHttpInfoReqGet (TSCacheHttpInfo infop, TSMBuffer *bufp, TSMLoc *obj)
void TSCacheHttpInfoRespGet (TSCacheHttpInfo infop, TSMBuffer *bufp, TSMLoc *obj)
time_t TSCacheHttpInfoReqSentTimeGet (TSCacheHttpInfo infop)
time_t TSCacheHttpInfoRespReceivedTimeGet (TSCacheHttpInfo infop)
int64_t TSCacheHttpInfoSizeGet (TSCacheHttpInfo infop)
void TSCacheHttpInfoReqSet (TSCacheHttpInfo infop, TSMBuffer bufp, TSMLoc obj)
void TSCacheHttpInfoRespSet (TSCacheHttpInfo infop, TSMBuffer bufp, TSMLoc obj)
int TSCacheHttpInfoVector (TSCacheHttpInfo infop, void *data, int length)
void TSCacheHttpInfoDestroy (TSCacheHttpInfo infop)
TSCacheHttpInfo TSCacheHttpInfoCreate (void)
unsigned int TSConfigSet (unsigned int id, void *data, TSConfigDestroyFunc funcp)
TSConfig TSConfigGet (unsigned int id)
void TSConfigRelease (unsigned int id, TSConfig configp)
void * TSConfigDataGet (TSConfig configp)
void TSMgmtUpdateRegister (TSCont contp, const char *plugin_name)
TSReturnCode TSMgmtIntGet (const char *var_name, TSMgmtInt *result)
TSReturnCode TSMgmtCounterGet (const char *var_name, TSMgmtCounter *result)
TSReturnCode TSMgmtFloatGet (const char *var_name, TSMgmtFloat *result)
TSReturnCode TSMgmtStringGet (const char *var_name, TSMgmtString *result)
TSCont TSContCreate (TSEventFunc funcp, TSMutex mutexp)
void TSContDestroy (TSCont contp)
void TSContDataSet (TSCont contp, void *data)
void * TSContDataGet (TSCont contp)
TSAction TSContSchedule (TSCont contp, ink_hrtime timeout, TSThreadPool tp)
TSAction TSContScheduleEvery (TSCont contp, ink_hrtime every, TSThreadPool tp)
TSAction TSHttpSchedule (TSCont contp, TSHttpTxn txnp, ink_hrtime timeout)
int TSContCall (TSCont contp, TSEvent event, void *edata)
TSMutex TSContMutexGet (TSCont contp)
void TSHttpHookAdd (TSHttpHookID id, TSCont contp)
void TSHttpIcpDynamicSet (int value)
void TSHttpSsnHookAdd (TSHttpSsn ssnp, TSHttpHookID id, TSCont contp)
int TSHttpSsnTransactionCount (TSHttpSsn ssnp)
void TSHttpSsnReenable (TSHttpSsn ssnp, TSEvent event)
void TSHttpTxnHookAdd (TSHttpTxn txnp, TSHttpHookID id, TSCont contp)
TSReturnCode TSHttpTxnHookRegisteredFor (TSHttpTxn txnp, TSHttpHookID id, TSEventFunc funcp)
TSHttpSsn TSHttpTxnSsnGet (TSHttpTxn txnp)
void TSHttpTxnClientKeepaliveSet (TSHttpTxn txnp, int set)
TSReturnCode TSHttpTxnClientDataGet (TSHttpTxn txnp, const char **bufp, int *len)
TSReturnCode TSHttpTxnClientReqGet (TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
TSReturnCode TSHttpTxnPristineUrlGet (TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *url_loc)
char * TSHttpTxnEffectiveUrlStringGet (TSHttpTxn txnp, int *length)
 Get the effective URL for the transaction.
TSReturnCode TSHttpTxnClientRespGet (TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
TSReturnCode TSHttpTxnServerReqGet (TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
TSReturnCode TSHttpTxnServerRespGet (TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
TSReturnCode TSHttpTxnCachedReqGet (TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
TSReturnCode TSHttpTxnCachedRespGet (TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
TSReturnCode TSHttpTxnCachedRespModifiableGet (TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
TSReturnCode TSHttpTxnCacheLookupStatusGet (TSHttpTxn txnp, int *lookup_status)
TSReturnCode TSHttpTxnCacheLookupCountGet (TSHttpTxn txnp, int *lookup_count)
TSReturnCode TSHttpTxnCacheLookupStatusSet (TSHttpTxn txnp, int cachelookup)
TSReturnCode TSHttpTxnCacheLookupUrlGet (TSHttpTxn txnp, TSMBuffer bufp, TSMLoc obj)
TSReturnCode TSHttpTxnCachedUrlSet (TSHttpTxn txnp, TSMBuffer bufp, TSMLoc obj)
TSReturnCode TSHttpTxnNewCacheLookupDo (TSHttpTxn txnp, TSMBuffer bufp, TSMLoc url_loc)
TSReturnCode TSHttpTxnSecondUrlTryLock (TSHttpTxn txnp)
TSReturnCode TSHttpTxnFollowRedirect (TSHttpTxn txnp, int on)
TSReturnCode TSHttpTxnRedirectRequest (TSHttpTxn txnp, TSMBuffer bufp, TSMLoc url_loc)
void TSHttpTxnActiveTimeoutSet (TSHttpTxn txnp, int timeout)
 timeout is in msec overrides as proxy.config.http.transaction_active_timeout_out
void TSHttpTxnConnectTimeoutSet (TSHttpTxn txnp, int timeout)
 timeout is in msec overrides as proxy.config.http.connect_attempts_timeout
void TSHttpTxnDNSTimeoutSet (TSHttpTxn txnp, int timeout)
 timeout is in msec overrides as proxy.config.dns.lookup_timeout
void TSHttpTxnNoActivityTimeoutSet (TSHttpTxn txnp, int timeout)
 timeout is in msec overrides as proxy.config.http.transaction_no_activity_timeout_out
TSReturnCode TSHttpTxnCacheLookupSkip (TSHttpTxn txnp)
TSReturnCode TSHttpTxnServerRespNoStore (TSHttpTxn txnp)
TSReturnCode TSHttpTxnServerRespIgnore (TSHttpTxn txnp)
TSReturnCode TSHttpTxnShutDown (TSHttpTxn txnp, TSEvent event)
TSReturnCode TSHttpTxnAborted (TSHttpTxn txnp)
 Check if transaction was aborted (due client/server errors etc.)
void TSHttpTxnReqCacheableSet (TSHttpTxn txnp, int flag)
void TSHttpTxnRespCacheableSet (TSHttpTxn txnp, int flag)
int TSHttpTxnClientReqIsServerStyle (TSHttpTxn txnp)
void TSHttpTxnOverwriteExpireTime (TSHttpTxn txnp, time_t expire_time)
TSReturnCode TSHttpTxnUpdateCachedObject (TSHttpTxn txnp)
TSReturnCode TSHttpTxnTransformRespGet (TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
sockaddr const * TSHttpSsnClientAddrGet (TSHttpSsn ssnp)
sockaddr const * TSHttpTxnClientAddrGet (TSHttpTxn txnp)
 Get client address for transaction txnp.
sockaddr const * TSHttpSsnIncomingAddrGet (TSHttpSsn ssnp)
sockaddr const * TSHttpTxnIncomingAddrGet (TSHttpTxn txnp)
 Get the incoming address.
sockaddr const * TSHttpTxnServerAddrGet (TSHttpTxn txnp)
 Get the origin server address.
TSReturnCode TSHttpTxnServerAddrSet (TSHttpTxn txnp, struct sockaddr const *addr)
 Set the origin server address.
TSReturnCode TSHttpTxnOutgoingAddrSet (TSHttpTxn txnp, const struct sockaddr *addr)
sockaddr const * TSHttpTxnNextHopAddrGet (TSHttpTxn txnp)
 Get the next hop address.
TSReturnCode TSHttpTxnOutgoingTransparencySet (TSHttpTxn txnp, int flag)
TSReturnCode TSHttpTxnClientPacketMarkSet (TSHttpTxn txnp, int mark)
 Change packet firewall mark for the client side connection.
TSReturnCode TSHttpTxnServerPacketMarkSet (TSHttpTxn txnp, int mark)
 Change packet firewall mark for the server side connection.
TSReturnCode TSHttpTxnClientPacketTosSet (TSHttpTxn txnp, int tos)
 Change packet TOS for the client side connection.
TSReturnCode TSHttpTxnServerPacketTosSet (TSHttpTxn txnp, int tos)
 Change packet TOS for the server side connection.
void TSHttpTxnErrorBodySet (TSHttpTxn txnp, char *buf, int buflength, char *mimetype)
void TSHttpTxnServerRequestBodySet (TSHttpTxn txnp, char *buf, int64_t buflength)
TSReturnCode TSHttpTxnParentProxyGet (TSHttpTxn txnp, char **hostname, int *port)
 Retrieves the parent proxy hostname and port, if parent proxying is enabled.
void TSHttpTxnParentProxySet (TSHttpTxn txnp, char *hostname, int port)
 Sets the parent proxy name and port.
void TSHttpTxnUntransformedRespCache (TSHttpTxn txnp, int on)
void TSHttpTxnTransformedRespCache (TSHttpTxn txnp, int on)
void TSHttpTxnReenable (TSHttpTxn txnp, TSEvent event)
 Notifies the HTTP transaction txnp that the plugin is finished processing the current hook.
TSReturnCode TSHttpArgIndexReserve (const char *name, const char *description, int *arg_idx)
TSReturnCode TSHttpArgIndexLookup (int arg_idx, const char **name, const char **description)
TSReturnCode TSHttpArgIndexNameLookup (const char *name, int *arg_idx, const char **description)
void TSHttpTxnArgSet (TSHttpTxn txnp, int arg_idx, void *arg)
void * TSHttpTxnArgGet (TSHttpTxn txnp, int arg_idx)
void TSHttpSsnArgSet (TSHttpSsn ssnp, int arg_idx, void *arg)
void * TSHttpSsnArgGet (TSHttpSsn ssnp, int arg_idx)
void TSHttpTxnSetHttpRetStatus (TSHttpTxn txnp, TSHttpStatus http_retstatus)
int TSHttpTxnGetMaxHttpRetBodySize (void)
void TSHttpTxnSetHttpRetBody (TSHttpTxn txnp, const char *body_msg, int plain_msg_flag)
TSReturnCode TSHttpTxnCntl (TSHttpTxn txnp, TSHttpCntlType cntl, void *data)
TSServerState TSHttpTxnServerStateGet (TSHttpTxn txnp)
void TSHttpTxnDebugSet (TSHttpTxn txnp, int on)
 Set the transaction specific debugging flag for this transaction.
int TSHttpTxnDebugGet (TSHttpTxn txnp)
 Returns the transaction specific debugging flag for this transaction.
void TSHttpSsnDebugSet (TSHttpSsn ssnp, int on)
 Set the session specific debugging flag for this client session.
int TSHttpSsnDebugGet (TSHttpSsn ssnp)
int TSHttpTxnClientReqHdrBytesGet (TSHttpTxn txnp)
int64_t TSHttpTxnClientReqBodyBytesGet (TSHttpTxn txnp)
int TSHttpTxnServerReqHdrBytesGet (TSHttpTxn txnp)
int64_t TSHttpTxnServerReqBodyBytesGet (TSHttpTxn txnp)
int TSHttpTxnServerRespHdrBytesGet (TSHttpTxn txnp)
int64_t TSHttpTxnServerRespBodyBytesGet (TSHttpTxn txnp)
int TSHttpTxnClientRespHdrBytesGet (TSHttpTxn txnp)
int64_t TSHttpTxnClientRespBodyBytesGet (TSHttpTxn txnp)
int TSHttpTxnPushedRespHdrBytesGet (TSHttpTxn txnp, int *bytes)
int64_t TSHttpTxnPushedRespBodyBytesGet (TSHttpTxn txnp)
TSReturnCode TSHttpTxnMilestoneGet (TSHttpTxn txnp, TSMilestonesType milestone, ink_hrtime *time)
 Return the particular milestone timer for the transaction.
TSReturnCode TSHttpTxnCachedRespTimeGet (TSHttpTxn txnp, time_t *resp_time)
int TSHttpTxnLookingUpTypeGet (TSHttpTxn txnp)
int TSHttpCurrentClientConnectionsGet (void)
int TSHttpCurrentActiveClientConnectionsGet (void)
int TSHttpCurrentIdleClientConnectionsGet (void)
int TSHttpCurrentCacheConnectionsGet (void)
int TSHttpCurrentServerConnectionsGet (void)
TSReturnCode TSHttpAltInfoClientReqGet (TSHttpAltInfo infop, TSMBuffer *bufp, TSMLoc *obj)
TSReturnCode TSHttpAltInfoCachedReqGet (TSHttpAltInfo infop, TSMBuffer *bufp, TSMLoc *obj)
TSReturnCode TSHttpAltInfoCachedRespGet (TSHttpAltInfo infop, TSMBuffer *bufp, TSMLoc *obj)
void TSHttpAltInfoQualitySet (TSHttpAltInfo infop, float quality)
TSVConn TSHttpConnect (sockaddr const *addr)
TSVConn TSHttpConnectTransparent (sockaddr const *client_addr, sockaddr const *server_addr)
void TSActionCancel (TSAction actionp)
int TSActionDone (TSAction actionp)
TSVConn TSVConnCreate (TSEventFunc event_funcp, TSMutex mutexp)
TSVIO TSVConnReadVIOGet (TSVConn connp)
TSVIO TSVConnWriteVIOGet (TSVConn connp)
int TSVConnClosedGet (TSVConn connp)
TSVIO TSVConnRead (TSVConn connp, TSCont contp, TSIOBuffer bufp, int64_t nbytes)
TSVIO TSVConnWrite (TSVConn connp, TSCont contp, TSIOBufferReader readerp, int64_t nbytes)
void TSVConnClose (TSVConn connp)
void TSVConnAbort (TSVConn connp, int error)
void TSVConnShutdown (TSVConn connp, int read, int write)
int64_t TSVConnCacheObjectSizeGet (TSVConn connp)
void TSVConnCacheHttpInfoSet (TSVConn connp, TSCacheHttpInfo infop)
TSVConn TSTransformCreate (TSEventFunc event_funcp, TSHttpTxn txnp)
TSVConn TSTransformOutputVConnGet (TSVConn connp)
void TSHttpTxnServerIntercept (TSCont contp, TSHttpTxn txnp)
 Allows a plugin take over the servicing of the request as though it was the origin server.
void TSHttpTxnIntercept (TSCont contp, TSHttpTxn txnp)
 Allows a plugin take over the servicing of the request as though it was the origin server.
void TSVConnInactivityTimeoutSet (TSVConn connp, TSHRTime timeout)
void TSVConnInactivityTimeoutCancel (TSVConn connp)
void TSVConnActiveTimeoutSet (TSVConn connp, TSHRTime timeout)
void TSVConnActiveTimeoutCancel (TSVConn connp)
sockaddr const * TSNetVConnLocalAddrGet (TSVConn connp)
sockaddr const * TSNetVConnRemoteAddrGet (TSVConn connp)
TSAction TSNetConnect (TSCont contp, sockaddr const *addr)
TSAction TSNetAccept (TSCont contp, int port, int domain, int accept_threads)
bool ssl_register_protocol (const char *, Continuation *)
bool ssl_unregister_protocol (const char *, Continuation *)
TSReturnCode TSNetAcceptNamedProtocol (TSCont contp, const char *protocol)
 Listen on all SSL ports for connections for the specified protocol name.
TSAction TSHostLookup (TSCont contp, const char *hostname, size_t namelen)
sockaddr const * TSHostLookupResultAddrGet (TSHostLookupResult lookup_result)
TSReturnCode TSCacheReady (int *is_ready)
TSReturnCode TSCacheDataTypeReady (TSCacheDataType type, int *is_ready)
TSAction TSCacheRead (TSCont contp, TSCacheKey key)
 Asks the Traffic Server cache if the object corresponding to key exists in the cache and can be read.
TSAction TSCacheWrite (TSCont contp, TSCacheKey key)
 Asks the Traffic Server cache if contp can start writing the object (corresponding to key) to the cache.
TSAction TSCacheRemove (TSCont contp, TSCacheKey key)
 Removes the object corresponding to key from the cache.
TSAction TSCacheScan (TSCont contp, TSCacheKey key, int KB_per_second)
int TSStatCreate (const char *the_name, TSRecordDataType the_type, TSStatPersistence persist, TSStatSync sync)
void TSStatIntIncrement (int the_stat, TSMgmtInt amount)
void TSStatIntDecrement (int the_stat, TSMgmtInt amount)
TSMgmtInt TSStatIntGet (int the_stat)
void TSStatIntSet (int the_stat, TSMgmtInt value)
TSReturnCode TSStatFindName (const char *name, int *idp)
TSReturnCode ink_sanity_check_stat_structure (void *obj)
int TSIsDebugTagSet (const char *t)
void TSDebugSpecific (int debug_flag, const char *tag, const char *format_str,...)
void TSDebug (const char *tag, const char *format_str,...)
TSReturnCode TSTextLogObjectCreate (const char *filename, int mode, TSTextLogObject *new_object)
 Creates a new custom log file that your plugin can write to.
TSReturnCode TSTextLogObjectWrite (TSTextLogObject the_object, char *format,...)
void TSTextLogObjectFlush (TSTextLogObject the_object)
 This immediately flushes the contents of the log write buffer for the_object to disk.
TSReturnCode TSTextLogObjectDestroy (TSTextLogObject the_object)
 Destroys a log object and releases the memory allocated to it.
void TSTextLogObjectHeaderSet (TSTextLogObject the_object, const char *header)
 Set log header.
void TSTextLogObjectRollingEnabledSet (TSTextLogObject the_object, int rolling_enabled)
 Enable/disable rolling.
void TSTextLogObjectRollingIntervalSecSet (TSTextLogObject the_object, int rolling_interval_sec)
 Set the rolling interval.
void TSTextLogObjectRollingOffsetHrSet (TSTextLogObject the_object, int rolling_offset_hr)
 Set the rolling offset.
TSReturnCode TSHttpSsnClientFdGet (TSHttpSsn ssnp, int *fdp)
TSReturnCode TSHttpTxnClientFdGet (TSHttpTxn txnp, int *fdp)
char * TSMatcherReadIntoBuffer (char *file_name, int *file_len)
char * TSMatcherTokLine (char *buffer, char **last)
char * TSMatcherExtractIPRange (char *match_str, uint32_t *addr1, uint32_t *addr2)
char * TSMatcherExtractIPRange (char *match_str, sockaddr *addr1, sockaddr *addr2)
TSMatcherLine TSMatcherLineCreate (void)
void TSMatcherLineDestroy (TSMatcherLine ml)
const char * TSMatcherParseSrcIPConfigLine (char *line, TSMatcherLine ml)
char * TSMatcherLineName (TSMatcherLine ml, int element)
char * TSMatcherLineValue (TSMatcherLine ml, int element)
TSReturnCode TSMgmtConfigIntSet (const char *var_name, TSMgmtInt value)
void TSSignalWarning (TSAlarmType code, char *msg)
void TSICPFreshnessFuncSet (TSPluginFreshnessCalcFunc funcp)
TSReturnCode TSICPCachedReqGet (TSCont contp, TSMBuffer *bufp, TSMLoc *obj)
TSReturnCode TSICPCachedRespGet (TSCont contp, TSMBuffer *bufp, TSMLoc *obj)
TSReturnCode TSCacheUrlSet (TSHttpTxn txnp, const char *url, int length)
void TSCacheHttpInfoKeySet (TSCacheHttpInfo infop, TSCacheKey keyp)
void TSCacheHttpInfoSizeSet (TSCacheHttpInfo infop, int64_t size)
void TSRedirectUrlSet (TSHttpTxn txnp, const char *url, const int url_len)
const char * TSRedirectUrlGet (TSHttpTxn txnp, int *url_len_ptr)
char * TSFetchRespGet (TSHttpTxn txnp, int *length)
TSReturnCode TSFetchPageRespGet (TSHttpTxn txnp, TSMBuffer *bufp, TSMLoc *obj)
void TSFetchPages (TSFetchUrlParams_t *params)
void TSFetchUrl (const char *headers, int request_len, sockaddr const *ip, TSCont contp, TSFetchWakeUpOptions callback_options, TSFetchEvent events)
TSReturnCode TSHttpIsInternalRequest (TSHttpTxn txnp)
TSReturnCode TSAIORead (int fd, off_t offset, char *buf, size_t buffSize, TSCont contp)
 Async disk IO read.
char * TSAIOBufGet (TSAIOCallback data)
 Async disk IO buffer get.
int TSAIONBytesGet (TSAIOCallback data)
 Async disk IO get number of bytes.
TSReturnCode TSAIOWrite (int fd, off_t offset, char *buf, const size_t bufSize, TSCont contp)
 Async disk IO write.
TSReturnCode TSAIOThreadNumSet (int thread_num)
 Async disk IO set number of threads.
void TSRecordDump (TSRecordType rec_type, TSRecordDumpCb callback, void *edata)
void TSSkipRemappingSet (TSHttpTxn txnp, int flag)
void * _conf_to_memberp (TSOverridableConfigKey conf, HttpSM *sm, OverridableDataType *typep)
TSReturnCode TSHttpTxnConfigIntSet (TSHttpTxn txnp, TSOverridableConfigKey conf, TSMgmtInt value)
TSReturnCode TSHttpTxnConfigIntGet (TSHttpTxn txnp, TSOverridableConfigKey conf, TSMgmtInt *value)
TSReturnCode TSHttpTxnConfigFloatSet (TSHttpTxn txnp, TSOverridableConfigKey conf, TSMgmtFloat value)
TSReturnCode TSHttpTxnConfigFloatGet (TSHttpTxn txnp, TSOverridableConfigKey conf, TSMgmtFloat *value)
TSReturnCode TSHttpTxnConfigStringSet (TSHttpTxn txnp, TSOverridableConfigKey conf, const char *value, int length)
TSReturnCode TSHttpTxnConfigStringGet (TSHttpTxn txnp, TSOverridableConfigKey conf, const char **value, int *length)
TSReturnCode TSHttpTxnConfigFind (const char *name, int length, TSOverridableConfigKey *conf, TSRecordDataType *type)
TSReturnCode TSHttpTxnPrivateSessionSet (TSHttpTxn txnp, int private_session)
TSReturnCode TSMgmtStringCreate (TSRecordType rec_type, const char *name, const TSMgmtString data_default, TSRecordUpdateType update_type, TSRecordCheckType check_type, const char *check_regex, TSRecordAccessType access_type)
TSReturnCode TSMgmtIntCreate (TSRecordType rec_type, const char *name, TSMgmtInt data_default, TSRecordUpdateType update_type, TSRecordCheckType check_type, const char *check_regex, TSRecordAccessType access_type)
TSPortDescriptor TSPortDescriptorParse (const char *descriptor)
 Create a new port from the string specification used by the proxy.config.http.server_ports configuration value.
TSReturnCode TSPortDescriptorAccept (TSPortDescriptor descp, TSCont contp)
 Start listening on the given port descriptor.
int TSHttpTxnBackgroundFillStarted (TSHttpTxn txnp)

Variables

volatile int top_stat = 0
RecRawStatBlockapi_rsb
volatile int next_argv_index = 0
struct _STATE_ARG_TABLE state_arg_table [HTTP_SSN_TXN_MAX_USER_ARG]
tsapi const char * TS_URL_SCHEME_FILE
tsapi const char * TS_URL_SCHEME_FTP
tsapi const char * TS_URL_SCHEME_GOPHER
tsapi const char * TS_URL_SCHEME_HTTP
tsapi const char * TS_URL_SCHEME_HTTPS
tsapi const char * TS_URL_SCHEME_MAILTO
tsapi const char * TS_URL_SCHEME_NEWS
tsapi const char * TS_URL_SCHEME_NNTP
tsapi const char * TS_URL_SCHEME_PROSPERO
tsapi const char * TS_URL_SCHEME_TELNET
tsapi const char * TS_URL_SCHEME_TUNNEL
tsapi const char * TS_URL_SCHEME_WAIS
tsapi const char * TS_URL_SCHEME_PNM
tsapi const char * TS_URL_SCHEME_RTSP
tsapi const char * TS_URL_SCHEME_RTSPU
tsapi const char * TS_URL_SCHEME_MMS
tsapi const char * TS_URL_SCHEME_MMSU
tsapi const char * TS_URL_SCHEME_MMST
tsapi int TS_URL_LEN_FILE
tsapi int TS_URL_LEN_FTP
tsapi int TS_URL_LEN_GOPHER
tsapi int TS_URL_LEN_HTTP
tsapi int TS_URL_LEN_HTTPS
tsapi int TS_URL_LEN_MAILTO
tsapi int TS_URL_LEN_NEWS
tsapi int TS_URL_LEN_NNTP
tsapi int TS_URL_LEN_PROSPERO
tsapi int TS_URL_LEN_TELNET
tsapi int TS_URL_LEN_TUNNEL
tsapi int TS_URL_LEN_WAIS
tsapi int TS_URL_LEN_PNM
tsapi int TS_URL_LEN_RTSP
tsapi int TS_URL_LEN_RTSPU
tsapi int TS_URL_LEN_MMS
tsapi int TS_URL_LEN_MMSU
tsapi int TS_URL_LEN_MMST
tsapi const char * TS_MIME_FIELD_ACCEPT
tsapi const char * TS_MIME_FIELD_ACCEPT_CHARSET
tsapi const char * TS_MIME_FIELD_ACCEPT_ENCODING
tsapi const char * TS_MIME_FIELD_ACCEPT_LANGUAGE
tsapi const char * TS_MIME_FIELD_ACCEPT_RANGES
tsapi const char * TS_MIME_FIELD_AGE
tsapi const char * TS_MIME_FIELD_ALLOW
tsapi const char * TS_MIME_FIELD_APPROVED
tsapi const char * TS_MIME_FIELD_AUTHORIZATION
tsapi const char * TS_MIME_FIELD_BYTES
tsapi const char * TS_MIME_FIELD_CACHE_CONTROL
tsapi const char * TS_MIME_FIELD_CLIENT_IP
tsapi const char * TS_MIME_FIELD_CONNECTION
tsapi const char * TS_MIME_FIELD_CONTENT_BASE
tsapi const char * TS_MIME_FIELD_CONTENT_ENCODING
tsapi const char * TS_MIME_FIELD_CONTENT_LANGUAGE
tsapi const char * TS_MIME_FIELD_CONTENT_LENGTH
tsapi const char * TS_MIME_FIELD_CONTENT_LOCATION
tsapi const char * TS_MIME_FIELD_CONTENT_MD5
tsapi const char * TS_MIME_FIELD_CONTENT_RANGE
tsapi const char * TS_MIME_FIELD_CONTENT_TYPE
tsapi const char * TS_MIME_FIELD_CONTROL
tsapi const char * TS_MIME_FIELD_COOKIE
tsapi const char * TS_MIME_FIELD_DATE
tsapi const char * TS_MIME_FIELD_DISTRIBUTION
tsapi const char * TS_MIME_FIELD_ETAG
tsapi const char * TS_MIME_FIELD_EXPECT
tsapi const char * TS_MIME_FIELD_EXPIRES
tsapi const char * TS_MIME_FIELD_FOLLOWUP_TO
tsapi const char * TS_MIME_FIELD_FROM
tsapi const char * TS_MIME_FIELD_HOST
tsapi const char * TS_MIME_FIELD_IF_MATCH
tsapi const char * TS_MIME_FIELD_IF_MODIFIED_SINCE
tsapi const char * TS_MIME_FIELD_IF_NONE_MATCH
tsapi const char * TS_MIME_FIELD_IF_RANGE
tsapi const char * TS_MIME_FIELD_IF_UNMODIFIED_SINCE
tsapi const char * TS_MIME_FIELD_KEEP_ALIVE
tsapi const char * TS_MIME_FIELD_KEYWORDS
tsapi const char * TS_MIME_FIELD_LAST_MODIFIED
tsapi const char * TS_MIME_FIELD_LINES
tsapi const char * TS_MIME_FIELD_LOCATION
tsapi const char * TS_MIME_FIELD_MAX_FORWARDS
tsapi const char * TS_MIME_FIELD_MESSAGE_ID
tsapi const char * TS_MIME_FIELD_NEWSGROUPS
tsapi const char * TS_MIME_FIELD_ORGANIZATION
tsapi const char * TS_MIME_FIELD_PATH
tsapi const char * TS_MIME_FIELD_PRAGMA
tsapi const char * TS_MIME_FIELD_PROXY_AUTHENTICATE
tsapi const char * TS_MIME_FIELD_PROXY_AUTHORIZATION
tsapi const char * TS_MIME_FIELD_PROXY_CONNECTION
tsapi const char * TS_MIME_FIELD_PUBLIC
tsapi const char * TS_MIME_FIELD_RANGE
tsapi const char * TS_MIME_FIELD_REFERENCES
tsapi const char * TS_MIME_FIELD_REFERER
tsapi const char * TS_MIME_FIELD_REPLY_TO
tsapi const char * TS_MIME_FIELD_RETRY_AFTER
tsapi const char * TS_MIME_FIELD_SENDER
tsapi const char * TS_MIME_FIELD_SERVER
tsapi const char * TS_MIME_FIELD_SET_COOKIE
tsapi const char * TS_MIME_FIELD_SUBJECT
tsapi const char * TS_MIME_FIELD_SUMMARY
tsapi const char * TS_MIME_FIELD_TE
tsapi const char * TS_MIME_FIELD_TRANSFER_ENCODING
tsapi const char * TS_MIME_FIELD_UPGRADE
tsapi const char * TS_MIME_FIELD_USER_AGENT
tsapi const char * TS_MIME_FIELD_VARY
tsapi const char * TS_MIME_FIELD_VIA
tsapi const char * TS_MIME_FIELD_WARNING
tsapi const char * TS_MIME_FIELD_WWW_AUTHENTICATE
tsapi const char * TS_MIME_FIELD_XREF
tsapi const char * TS_MIME_FIELD_X_FORWARDED_FOR
tsapi int TS_MIME_LEN_ACCEPT
tsapi int TS_MIME_LEN_ACCEPT_CHARSET
tsapi int TS_MIME_LEN_ACCEPT_ENCODING
tsapi int TS_MIME_LEN_ACCEPT_LANGUAGE
tsapi int TS_MIME_LEN_ACCEPT_RANGES
tsapi int TS_MIME_LEN_AGE
tsapi int TS_MIME_LEN_ALLOW
tsapi int TS_MIME_LEN_APPROVED
tsapi int TS_MIME_LEN_AUTHORIZATION
tsapi int TS_MIME_LEN_BYTES
tsapi int TS_MIME_LEN_CACHE_CONTROL
tsapi int TS_MIME_LEN_CLIENT_IP
tsapi int TS_MIME_LEN_CONNECTION
tsapi int TS_MIME_LEN_CONTENT_BASE
tsapi int TS_MIME_LEN_CONTENT_ENCODING
tsapi int TS_MIME_LEN_CONTENT_LANGUAGE
tsapi int TS_MIME_LEN_CONTENT_LENGTH
tsapi int TS_MIME_LEN_CONTENT_LOCATION
tsapi int TS_MIME_LEN_CONTENT_MD5
tsapi int TS_MIME_LEN_CONTENT_RANGE
tsapi int TS_MIME_LEN_CONTENT_TYPE
tsapi int TS_MIME_LEN_CONTROL
tsapi int TS_MIME_LEN_COOKIE
tsapi int TS_MIME_LEN_DATE
tsapi int TS_MIME_LEN_DISTRIBUTION
tsapi int TS_MIME_LEN_ETAG
tsapi int TS_MIME_LEN_EXPECT
tsapi int TS_MIME_LEN_EXPIRES
tsapi int TS_MIME_LEN_FOLLOWUP_TO
tsapi int TS_MIME_LEN_FROM
tsapi int TS_MIME_LEN_HOST
tsapi int TS_MIME_LEN_IF_MATCH
tsapi int TS_MIME_LEN_IF_MODIFIED_SINCE
tsapi int TS_MIME_LEN_IF_NONE_MATCH
tsapi int TS_MIME_LEN_IF_RANGE
tsapi int TS_MIME_LEN_IF_UNMODIFIED_SINCE
tsapi int TS_MIME_LEN_KEEP_ALIVE
tsapi int TS_MIME_LEN_KEYWORDS
tsapi int TS_MIME_LEN_LAST_MODIFIED
tsapi int TS_MIME_LEN_LINES
tsapi int TS_MIME_LEN_LOCATION
tsapi int TS_MIME_LEN_MAX_FORWARDS
tsapi int TS_MIME_LEN_MESSAGE_ID
tsapi int TS_MIME_LEN_NEWSGROUPS
tsapi int TS_MIME_LEN_ORGANIZATION
tsapi int TS_MIME_LEN_PATH
tsapi int TS_MIME_LEN_PRAGMA
tsapi int TS_MIME_LEN_PROXY_AUTHENTICATE
tsapi int TS_MIME_LEN_PROXY_AUTHORIZATION
tsapi int TS_MIME_LEN_PROXY_CONNECTION
tsapi int TS_MIME_LEN_PUBLIC
tsapi int TS_MIME_LEN_RANGE
tsapi int TS_MIME_LEN_REFERENCES
tsapi int TS_MIME_LEN_REFERER
tsapi int TS_MIME_LEN_REPLY_TO
tsapi int TS_MIME_LEN_RETRY_AFTER
tsapi int TS_MIME_LEN_SENDER
tsapi int TS_MIME_LEN_SERVER
tsapi int TS_MIME_LEN_SET_COOKIE
tsapi int TS_MIME_LEN_SUBJECT
tsapi int TS_MIME_LEN_SUMMARY
tsapi int TS_MIME_LEN_TE
tsapi int TS_MIME_LEN_TRANSFER_ENCODING
tsapi int TS_MIME_LEN_UPGRADE
tsapi int TS_MIME_LEN_USER_AGENT
tsapi int TS_MIME_LEN_VARY
tsapi int TS_MIME_LEN_VIA
tsapi int TS_MIME_LEN_WARNING
tsapi int TS_MIME_LEN_WWW_AUTHENTICATE
tsapi int TS_MIME_LEN_XREF
tsapi int TS_MIME_LEN_X_FORWARDED_FOR
tsapi const char * TS_HTTP_VALUE_BYTES
tsapi const char * TS_HTTP_VALUE_CHUNKED
tsapi const char * TS_HTTP_VALUE_CLOSE
tsapi const char * TS_HTTP_VALUE_COMPRESS
tsapi const char * TS_HTTP_VALUE_DEFLATE
tsapi const char * TS_HTTP_VALUE_GZIP
tsapi const char * TS_HTTP_VALUE_IDENTITY
tsapi const char * TS_HTTP_VALUE_KEEP_ALIVE
tsapi const char * TS_HTTP_VALUE_MAX_AGE
tsapi const char * TS_HTTP_VALUE_MAX_STALE
tsapi const char * TS_HTTP_VALUE_MIN_FRESH
tsapi const char * TS_HTTP_VALUE_MUST_REVALIDATE
tsapi const char * TS_HTTP_VALUE_NONE
tsapi const char * TS_HTTP_VALUE_NO_CACHE
tsapi const char * TS_HTTP_VALUE_NO_STORE
tsapi const char * TS_HTTP_VALUE_NO_TRANSFORM
tsapi const char * TS_HTTP_VALUE_ONLY_IF_CACHED
tsapi const char * TS_HTTP_VALUE_PRIVATE
tsapi const char * TS_HTTP_VALUE_PROXY_REVALIDATE
tsapi const char * TS_HTTP_VALUE_PUBLIC
tsapi const char * TS_HTTP_VALUE_S_MAXAGE
tsapi int TS_HTTP_LEN_BYTES
tsapi int TS_HTTP_LEN_CHUNKED
tsapi int TS_HTTP_LEN_CLOSE
tsapi int TS_HTTP_LEN_COMPRESS
tsapi int TS_HTTP_LEN_DEFLATE
tsapi int TS_HTTP_LEN_GZIP
tsapi int TS_HTTP_LEN_IDENTITY
tsapi int TS_HTTP_LEN_KEEP_ALIVE
tsapi int TS_HTTP_LEN_MAX_AGE
tsapi int TS_HTTP_LEN_MAX_STALE
tsapi int TS_HTTP_LEN_MIN_FRESH
tsapi int TS_HTTP_LEN_MUST_REVALIDATE
tsapi int TS_HTTP_LEN_NONE
tsapi int TS_HTTP_LEN_NO_CACHE
tsapi int TS_HTTP_LEN_NO_STORE
tsapi int TS_HTTP_LEN_NO_TRANSFORM
tsapi int TS_HTTP_LEN_ONLY_IF_CACHED
tsapi int TS_HTTP_LEN_PRIVATE
tsapi int TS_HTTP_LEN_PROXY_REVALIDATE
tsapi int TS_HTTP_LEN_PUBLIC
tsapi int TS_HTTP_LEN_S_MAXAGE
tsapi const char * TS_HTTP_METHOD_CONNECT
tsapi const char * TS_HTTP_METHOD_DELETE
tsapi const char * TS_HTTP_METHOD_GET
tsapi const char * TS_HTTP_METHOD_HEAD
tsapi const char * TS_HTTP_METHOD_ICP_QUERY
tsapi const char * TS_HTTP_METHOD_OPTIONS
tsapi const char * TS_HTTP_METHOD_POST
tsapi const char * TS_HTTP_METHOD_PURGE
tsapi const char * TS_HTTP_METHOD_PUT
tsapi const char * TS_HTTP_METHOD_TRACE
tsapi int TS_HTTP_LEN_CONNECT
tsapi int TS_HTTP_LEN_DELETE
tsapi int TS_HTTP_LEN_GET
tsapi int TS_HTTP_LEN_HEAD
tsapi int TS_HTTP_LEN_ICP_QUERY
tsapi int TS_HTTP_LEN_OPTIONS
tsapi int TS_HTTP_LEN_POST
tsapi int TS_HTTP_LEN_PURGE
tsapi int TS_HTTP_LEN_PUT
tsapi int TS_HTTP_LEN_TRACE
tsapi const char * TS_NPN_PROTOCOL_HTTP_1_0 = "http/1.0"
tsapi const char * TS_NPN_PROTOCOL_HTTP_1_1 = "http/1.1"
tsapi const char * TS_NPN_PROTOCOL_SPDY_1 = "spdy/1"
tsapi const char * TS_NPN_PROTOCOL_SPDY_2 = "spdy/2"
tsapi const char * TS_NPN_PROTOCOL_SPDY_3 = "spdy/3"
tsapi const TSMLoc TS_NULL_MLOC = (TSMLoc)NULL
 Use TS_NULL_MLOC as the parent in calls that require a parent when an TSMLoc does not have a parent TSMLoc.
HttpAPIHookshttp_global_hooks = NULL
ConfigUpdateCbTableglobal_config_cbs = NULL
static char traffic_server_version [128] = ""
static int ts_major_version = 0
static int ts_minor_version = 0
static int ts_patch_version = 0
static ClassAllocator< APIHookapiHookAllocator ("apiHookAllocator")
static ClassAllocator
< INKContInternal
INKContAllocator ("INKContAllocator")
static ClassAllocator
< INKVConnInternal
INKVConnAllocator ("INKVConnAllocator")
static ClassAllocator
< MIMEFieldSDKHandle
mHandleAllocator ("MIMEFieldSDKHandle")
HttpAcceptplugin_http_accept
HttpAcceptplugin_http_transparent_accept
ClassAllocator< FetchSMFetchSMAllocator

Detailed Description

Implements callin functions for TSAPI plugins.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Define Documentation

#define sdk_assert (   EX)    (void)((EX) || (_TSReleaseAssert(#EX, __FILE__, __LINE__)))

Referenced by sdk_alloc_field_handle(), TSBase64Decode(), TSBase64Encode(), TSPluginRegister(), TSHandleMLocRelease(), TSMBufferCreate(), TSMBufferDestroy(), TSUrlCreate(), TSUrlClone(), TSUrlCopy(), TSUrlPrint(), TSUrlParse(), TSUrlLengthGet(), TSUrlStringGet(), URLPartGet(), URLPartSet(), TSUrlPortGet(), TSUrlPortSet(), TSUrlFtpTypeGet(), TSUrlFtpTypeSet(), TSStringPercentEncode(), TSStringPercentDecode(), TSUrlPercentEncode(), TSMimeParserClear(), TSMimeParserDestroy(), TSMimeHdrCreate(), TSMimeHdrDestroy(), TSMimeHdrClone(), TSMimeHdrCopy(), TSMimeHdrPrint(), TSMimeHdrParse(), TSMimeHdrLengthGet(), TSMimeHdrFieldsClear(), TSMimeHdrFieldsCount(), TSMimeHdrFieldEqual(), TSMimeHdrFieldGet(), TSMimeHdrFieldFind(), TSMimeHdrFieldAppend(), TSMimeHdrFieldRemove(), TSMimeHdrFieldDestroy(), TSMimeHdrFieldCreate(), TSMimeHdrFieldCreateNamed(), TSMimeHdrFieldCopy(), TSMimeHdrFieldClone(), TSMimeHdrFieldCopyValues(), TSMimeHdrFieldNext(), TSMimeHdrFieldNextDup(), TSMimeHdrFieldLengthGet(), TSMimeHdrFieldNameGet(), TSMimeHdrFieldNameSet(), TSMimeHdrFieldValuesClear(), TSMimeHdrFieldValuesCount(), TSMimeHdrFieldValueStringGet(), TSMimeHdrFieldValueDateGet(), TSMimeHdrFieldValueIntGet(), TSMimeHdrFieldValueInt64Get(), TSMimeHdrFieldValueUintGet(), TSMimeHdrFieldValueStringSet(), TSMimeHdrFieldValueDateSet(), TSMimeHdrFieldValueIntSet(), TSMimeHdrFieldValueInt64Set(), TSMimeHdrFieldValueUintSet(), TSMimeHdrFieldValueAppend(), TSMimeHdrFieldValueStringInsert(), TSMimeHdrFieldValueIntInsert(), TSMimeHdrFieldValueUintInsert(), TSMimeHdrFieldValueDateInsert(), TSMimeHdrFieldValueDelete(), TSHttpParserClear(), TSHttpParserDestroy(), TSHttpHdrCreate(), TSHttpHdrDestroy(), TSHttpHdrClone(), TSHttpHdrCopy(), TSHttpHdrPrint(), TSHttpHdrParseReq(), TSHttpHdrParseResp(), TSHttpHdrLengthGet(), TSHttpHdrTypeGet(), TSHttpHdrTypeSet(), TSHttpHdrVersionGet(), TSHttpHdrVersionSet(), TSHttpHdrMethodGet(), TSHttpHdrMethodSet(), TSHttpHdrUrlGet(), TSHttpHdrUrlSet(), TSHttpHdrStatusGet(), TSHttpHdrStatusSet(), TSHttpHdrReasonGet(), TSHttpHdrReasonSet(), TSCacheKeyCreate(), TSCacheKeyDigestSet(), TSCacheKeyDigestFromUrlSet(), TSCacheKeyDataTypeSet(), TSCacheKeyHostNameSet(), TSCacheKeyPinnedSet(), TSCacheKeyDestroy(), TSMgmtUpdateRegister(), TSContCreate(), TSContDestroy(), TSContDataSet(), TSContDataGet(), TSContSchedule(), TSContScheduleEvery(), TSHttpSchedule(), TSContMutexGet(), TSHttpHookAdd(), TSHttpSsnHookAdd(), TSHttpSsnTransactionCount(), TSHttpSsnReenable(), TSHttpTxnHookAdd(), TSHttpTxnSsnGet(), TSHttpTxnClientDataGet(), TSHttpTxnClientReqGet(), TSHttpTxnPristineUrlGet(), TSHttpTxnEffectiveUrlStringGet(), TSHttpTxnClientRespGet(), TSHttpTxnServerReqGet(), TSHttpTxnServerRespGet(), TSHttpTxnCachedReqGet(), TSHttpTxnCachedRespGet(), TSHttpTxnCachedRespModifiableGet(), TSHttpTxnCacheLookupStatusGet(), TSHttpTxnCacheLookupCountGet(), TSHttpTxnCacheLookupStatusSet(), TSHttpTxnCacheLookupUrlGet(), TSHttpTxnCachedUrlSet(), TSHttpTxnNewCacheLookupDo(), TSHttpTxnSecondUrlTryLock(), TSHttpTxnFollowRedirect(), TSHttpTxnRedirectRequest(), TSHttpTxnActiveTimeoutSet(), TSHttpTxnConnectTimeoutSet(), TSHttpTxnDNSTimeoutSet(), TSHttpTxnNoActivityTimeoutSet(), TSHttpTxnCacheLookupSkip(), TSHttpTxnServerRespNoStore(), TSHttpTxnServerRespIgnore(), TSHttpTxnShutDown(), TSHttpTxnAborted(), TSHttpTxnReqCacheableSet(), TSHttpTxnRespCacheableSet(), TSHttpTxnClientReqIsServerStyle(), TSHttpTxnOverwriteExpireTime(), TSHttpTxnUpdateCachedObject(), TSHttpTxnTransformRespGet(), TSHttpTxnClientAddrGet(), TSHttpTxnIncomingAddrGet(), TSHttpTxnServerAddrGet(), TSHttpTxnServerAddrSet(), TSHttpTxnOutgoingAddrSet(), TSHttpTxnNextHopAddrGet(), TSHttpTxnClientPacketMarkSet(), TSHttpTxnServerPacketMarkSet(), TSHttpTxnClientPacketTosSet(), TSHttpTxnServerPacketTosSet(), TSHttpTxnErrorBodySet(), TSHttpTxnServerRequestBodySet(), TSHttpTxnParentProxyGet(), TSHttpTxnParentProxySet(), TSHttpTxnUntransformedRespCache(), TSHttpTxnTransformedRespCache(), TSHttpTxnReenable(), TSHttpArgIndexReserve(), TSHttpArgIndexNameLookup(), TSHttpTxnArgSet(), TSHttpTxnArgGet(), TSHttpSsnArgSet(), TSHttpSsnArgGet(), TSHttpTxnSetHttpRetStatus(), TSHttpTxnSetHttpRetBody(), TSHttpTxnCntl(), TSHttpTxnServerStateGet(), TSHttpTxnDebugSet(), TSHttpTxnDebugGet(), TSHttpSsnDebugSet(), TSHttpSsnDebugGet(), TSHttpTxnClientReqHdrBytesGet(), TSHttpTxnClientReqBodyBytesGet(), TSHttpTxnServerReqHdrBytesGet(), TSHttpTxnServerReqBodyBytesGet(), TSHttpTxnServerRespHdrBytesGet(), TSHttpTxnServerRespBodyBytesGet(), TSHttpTxnClientRespHdrBytesGet(), TSHttpTxnClientRespBodyBytesGet(), TSHttpTxnPushedRespHdrBytesGet(), TSHttpTxnPushedRespBodyBytesGet(), TSHttpTxnMilestoneGet(), TSHttpTxnCachedRespTimeGet(), TSHttpTxnLookingUpTypeGet(), TSHttpAltInfoClientReqGet(), TSHttpAltInfoCachedReqGet(), TSHttpAltInfoCachedRespGet(), TSHttpAltInfoQualitySet(), TSHttpConnect(), TSHttpConnectTransparent(), TSVConnCreate(), TSVConnReadVIOGet(), TSVConnWriteVIOGet(), TSVConnClosedGet(), TSVConnRead(), TSVConnWrite(), TSVConnClose(), TSVConnAbort(), TSVConnShutdown(), TSVConnCacheObjectSizeGet(), TSVConnCacheHttpInfoSet(), TSTransformCreate(), TSTransformOutputVConnGet(), TSHttpTxnServerIntercept(), TSHttpTxnIntercept(), TSVConnInactivityTimeoutSet(), TSVConnInactivityTimeoutCancel(), TSVConnActiveTimeoutSet(), TSVConnActiveTimeoutCancel(), TSNetVConnLocalAddrGet(), TSNetVConnRemoteAddrGet(), TSNetConnect(), TSNetAccept(), TSNetAcceptNamedProtocol(), TSHostLookup(), TSHostLookupResultAddrGet(), TSCacheReady(), TSCacheDataTypeReady(), TSCacheRead(), TSCacheWrite(), TSCacheRemove(), TSCacheScan(), TSStatFindName(), TSTextLogObjectCreate(), TSTextLogObjectWrite(), TSTextLogObjectFlush(), TSTextLogObjectDestroy(), TSTextLogObjectHeaderSet(), TSTextLogObjectRollingEnabledSet(), TSTextLogObjectRollingIntervalSecSet(), TSTextLogObjectRollingOffsetHrSet(), TSHttpSsnClientFdGet(), TSHttpTxnClientFdGet(), TSMatcherReadIntoBuffer(), TSMatcherTokLine(), TSMatcherExtractIPRange(), TSMatcherLineDestroy(), TSMatcherParseSrcIPConfigLine(), TSMatcherLineName(), TSMatcherLineValue(), TSSignalWarning(), TSICPCachedReqGet(), TSICPCachedRespGet(), TSCacheUrlSet(), TSRedirectUrlSet(), TSRedirectUrlGet(), TSFetchRespGet(), TSFetchPageRespGet(), TSFetchUrl(), TSHttpIsInternalRequest(), TSAIORead(), TSAIOWrite(), TSSkipRemappingSet(), TSHttpTxnConfigIntSet(), TSHttpTxnConfigIntGet(), TSHttpTxnConfigFloatSet(), TSHttpTxnConfigFloatGet(), TSHttpTxnConfigStringSet(), TSHttpTxnConfigStringGet(), TSHttpTxnConfigFind(), and TSHttpTxnBackgroundFillStarted().

#define SET_HTTP_HDR (   _HDR,
  _BUF_PTR,
  _OBJ_PTR 
)

Typedef Documentation

typedef const char*(URL::* URLPartGetF)(int *length)
typedef void(URL::* URLPartSetF)(const char *value, int length)

Function Documentation

void* _conf_to_memberp ( TSOverridableConfigKey  conf,
HttpSM sm,
OverridableDataType typep 
)

References OVERRIDABLE_TYPE_BYTE, TS_CONFIG_URL_REMAP_PRISTINE_HOST_HDR, HttpSM::t_state, HttpTransact::State::txn_conf, OverridableHttpConfigParams::maintain_pristine_host_hdr, TS_CONFIG_HTTP_CHUNKING_ENABLED, OverridableHttpConfigParams::chunking_enabled, TS_CONFIG_HTTP_NEGATIVE_CACHING_ENABLED, OverridableHttpConfigParams::negative_caching_enabled, TS_CONFIG_HTTP_NEGATIVE_CACHING_LIFETIME, OVERRIDABLE_TYPE_INT, OverridableHttpConfigParams::negative_caching_lifetime, TS_CONFIG_HTTP_CACHE_WHEN_TO_REVALIDATE, OverridableHttpConfigParams::cache_when_to_revalidate, TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_IN, OverridableHttpConfigParams::keep_alive_enabled_in, TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_OUT, OverridableHttpConfigParams::keep_alive_enabled_out, TS_CONFIG_HTTP_KEEP_ALIVE_POST_OUT, OverridableHttpConfigParams::keep_alive_post_out, TS_CONFIG_HTTP_SHARE_SERVER_SESSIONS, OverridableHttpConfigParams::share_server_sessions, TS_CONFIG_NET_SOCK_RECV_BUFFER_SIZE_OUT, OverridableHttpConfigParams::sock_recv_buffer_size_out, TS_CONFIG_NET_SOCK_SEND_BUFFER_SIZE_OUT, OverridableHttpConfigParams::sock_send_buffer_size_out, TS_CONFIG_NET_SOCK_OPTION_FLAG_OUT, OverridableHttpConfigParams::sock_option_flag_out, TS_CONFIG_NET_SOCK_PACKET_MARK_OUT, OverridableHttpConfigParams::sock_packet_mark_out, TS_CONFIG_NET_SOCK_PACKET_TOS_OUT, OverridableHttpConfigParams::sock_packet_tos_out, TS_CONFIG_HTTP_FORWARD_PROXY_AUTH_TO_PARENT, OverridableHttpConfigParams::fwd_proxy_auth_to_parent, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_FROM, OverridableHttpConfigParams::anonymize_remove_from, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_REFERER, OverridableHttpConfigParams::anonymize_remove_referer, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_USER_AGENT, OverridableHttpConfigParams::anonymize_remove_user_agent, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_COOKIE, OverridableHttpConfigParams::anonymize_remove_cookie, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_CLIENT_IP, OverridableHttpConfigParams::anonymize_remove_client_ip, TS_CONFIG_HTTP_ANONYMIZE_INSERT_CLIENT_IP, OverridableHttpConfigParams::anonymize_insert_client_ip, TS_CONFIG_HTTP_RESPONSE_SERVER_ENABLED, OverridableHttpConfigParams::proxy_response_server_enabled, TS_CONFIG_HTTP_INSERT_SQUID_X_FORWARDED_FOR, OverridableHttpConfigParams::insert_squid_x_forwarded_for, TS_CONFIG_HTTP_SERVER_TCP_INIT_CWND, OverridableHttpConfigParams::server_tcp_init_cwnd, TS_CONFIG_HTTP_SEND_HTTP11_REQUESTS, OverridableHttpConfigParams::send_http11_requests, TS_CONFIG_HTTP_CACHE_HTTP, OverridableHttpConfigParams::cache_http, TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_NO_CACHE, OverridableHttpConfigParams::cache_ignore_client_no_cache, TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_CC_MAX_AGE, OverridableHttpConfigParams::cache_ignore_client_cc_max_age, TS_CONFIG_HTTP_CACHE_IMS_ON_CLIENT_NO_CACHE, OverridableHttpConfigParams::cache_ims_on_client_no_cache, TS_CONFIG_HTTP_CACHE_IGNORE_SERVER_NO_CACHE, OverridableHttpConfigParams::cache_ignore_server_no_cache, TS_CONFIG_HTTP_CACHE_CACHE_RESPONSES_TO_COOKIES, OverridableHttpConfigParams::cache_responses_to_cookies, TS_CONFIG_HTTP_CACHE_IGNORE_AUTHENTICATION, OverridableHttpConfigParams::cache_ignore_auth, TS_CONFIG_HTTP_CACHE_CACHE_URLS_THAT_LOOK_DYNAMIC, OverridableHttpConfigParams::cache_urls_that_look_dynamic, TS_CONFIG_HTTP_CACHE_REQUIRED_HEADERS, OverridableHttpConfigParams::cache_required_headers, TS_CONFIG_HTTP_INSERT_REQUEST_VIA_STR, OverridableHttpConfigParams::insert_request_via_string, TS_CONFIG_HTTP_INSERT_RESPONSE_VIA_STR, OverridableHttpConfigParams::insert_response_via_string, TS_CONFIG_HTTP_CACHE_HEURISTIC_MIN_LIFETIME, OverridableHttpConfigParams::cache_heuristic_min_lifetime, TS_CONFIG_HTTP_CACHE_HEURISTIC_MAX_LIFETIME, OverridableHttpConfigParams::cache_heuristic_max_lifetime, TS_CONFIG_HTTP_CACHE_GUARANTEED_MIN_LIFETIME, OverridableHttpConfigParams::cache_guaranteed_min_lifetime, TS_CONFIG_HTTP_CACHE_GUARANTEED_MAX_LIFETIME, OverridableHttpConfigParams::cache_guaranteed_max_lifetime, TS_CONFIG_HTTP_CACHE_MAX_STALE_AGE, OverridableHttpConfigParams::cache_max_stale_age, TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_IN, OverridableHttpConfigParams::keep_alive_no_activity_timeout_in, TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_OUT, OverridableHttpConfigParams::keep_alive_no_activity_timeout_out, TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_IN, OverridableHttpConfigParams::transaction_no_activity_timeout_in, TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_OUT, OverridableHttpConfigParams::transaction_no_activity_timeout_out, TS_CONFIG_HTTP_TRANSACTION_ACTIVE_TIMEOUT_OUT, OverridableHttpConfigParams::transaction_active_timeout_out, TS_CONFIG_HTTP_ORIGIN_MAX_CONNECTIONS, OverridableHttpConfigParams::origin_max_connections, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES, OverridableHttpConfigParams::connect_attempts_max_retries, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES_DEAD_SERVER, OverridableHttpConfigParams::connect_attempts_max_retries_dead_server, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_RR_RETRIES, OverridableHttpConfigParams::connect_attempts_rr_retries, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_TIMEOUT, OverridableHttpConfigParams::connect_attempts_timeout, TS_CONFIG_HTTP_POST_CONNECT_ATTEMPTS_TIMEOUT, OverridableHttpConfigParams::post_connect_attempts_timeout, TS_CONFIG_HTTP_DOWN_SERVER_CACHE_TIME, OverridableHttpConfigParams::down_server_timeout, TS_CONFIG_HTTP_DOWN_SERVER_ABORT_THRESHOLD, OverridableHttpConfigParams::client_abort_threshold, TS_CONFIG_HTTP_CACHE_FUZZ_TIME, OverridableHttpConfigParams::freshness_fuzz_time, TS_CONFIG_HTTP_CACHE_FUZZ_MIN_TIME, OverridableHttpConfigParams::freshness_fuzz_min_time, TS_CONFIG_HTTP_DOC_IN_CACHE_SKIP_DNS, OverridableHttpConfigParams::doc_in_cache_skip_dns, TS_CONFIG_HTTP_BACKGROUND_FILL_ACTIVE_TIMEOUT, OverridableHttpConfigParams::background_fill_active_timeout, TS_CONFIG_HTTP_CACHE_HEURISTIC_LM_FACTOR, OVERRIDABLE_TYPE_FLOAT, OverridableHttpConfigParams::cache_heuristic_lm_factor, TS_CONFIG_HTTP_CACHE_FUZZ_PROBABILITY, OverridableHttpConfigParams::freshness_fuzz_prob, TS_CONFIG_HTTP_BACKGROUND_FILL_COMPLETED_THRESHOLD, OverridableHttpConfigParams::background_fill_threshold, TS_CONFIG_HTTP_RESPONSE_SERVER_STR, OVERRIDABLE_TYPE_STRING, OverridableHttpConfigParams::proxy_response_server_string, TS_CONFIG_NULL, TS_CONFIG_LAST_ENTRY, and OVERRIDABLE_TYPE_NULL.

Referenced by TSHttpTxnConfigIntSet(), TSHttpTxnConfigIntGet(), TSHttpTxnConfigFloatSet(), and TSHttpTxnConfigFloatGet().

MIMEHdrImpl* _hdr_mloc_to_mime_hdr_impl ( TSMLoc  mloc) [inline]
MIMEHdrImpl* _hdr_obj_to_mime_hdr_impl ( HdrHeapObjImpl obj) [inline]
int _TSAssert ( const char *  text,
const char *  file,
int  line 
)

References _ink_assert(), and NOWARN_UNUSED.

void _TSfree ( void *  ptr)

References ats_free().

void* _TSmalloc ( size_t  size,
const char *  path 
)

References NOWARN_UNUSED, and ats_malloc().

void* _TSrealloc ( void *  ptr,
size_t  size,
const char *  path 
)

References NOWARN_UNUSED, and ats_realloc().

int _TSReleaseAssert ( const char *  text,
const char *  file,
int  line 
)

References _ink_assert().

char* _TSstrdup ( const char *  str,
int64_t  length,
const char *  path 
)

References _xstrdup().

size_t _TSstrlcat ( char *  dst,
const char *  str,
size_t  siz 
)

References ink_strlcat().

size_t _TSstrlcpy ( char *  dst,
const char *  str,
size_t  siz 
)

References ink_strlcpy().

void api_init ( )

References ink_mutex_init(), TS_URL_SCHEME_FILE, URL_SCHEME_FILE, TS_URL_SCHEME_FTP, URL_SCHEME_FTP, TS_URL_SCHEME_GOPHER, URL_SCHEME_GOPHER, TS_URL_SCHEME_HTTP, URL_SCHEME_HTTP, TS_URL_SCHEME_HTTPS, URL_SCHEME_HTTPS, TS_URL_SCHEME_MAILTO, URL_SCHEME_MAILTO, TS_URL_SCHEME_NEWS, URL_SCHEME_NEWS, TS_URL_SCHEME_NNTP, URL_SCHEME_NNTP, TS_URL_SCHEME_PROSPERO, URL_SCHEME_PROSPERO, TS_URL_SCHEME_TELNET, URL_SCHEME_TELNET, TS_URL_SCHEME_WAIS, URL_SCHEME_WAIS, TS_URL_LEN_FILE, URL_LEN_FILE, TS_URL_LEN_FTP, URL_LEN_FTP, TS_URL_LEN_GOPHER, URL_LEN_GOPHER, TS_URL_LEN_HTTP, URL_LEN_HTTP, TS_URL_LEN_HTTPS, URL_LEN_HTTPS, TS_URL_LEN_MAILTO, URL_LEN_MAILTO, TS_URL_LEN_NEWS, URL_LEN_NEWS, TS_URL_LEN_NNTP, URL_LEN_NNTP, TS_URL_LEN_PROSPERO, URL_LEN_PROSPERO, TS_URL_LEN_TELNET, URL_LEN_TELNET, TS_URL_LEN_WAIS, URL_LEN_WAIS, TS_MIME_FIELD_ACCEPT, MIME_FIELD_ACCEPT, TS_MIME_FIELD_ACCEPT_CHARSET, MIME_FIELD_ACCEPT_CHARSET, TS_MIME_FIELD_ACCEPT_ENCODING, MIME_FIELD_ACCEPT_ENCODING, TS_MIME_FIELD_ACCEPT_LANGUAGE, MIME_FIELD_ACCEPT_LANGUAGE, TS_MIME_FIELD_ACCEPT_RANGES, MIME_FIELD_ACCEPT_RANGES, TS_MIME_FIELD_AGE, MIME_FIELD_AGE, TS_MIME_FIELD_ALLOW, MIME_FIELD_ALLOW, TS_MIME_FIELD_APPROVED, MIME_FIELD_APPROVED, TS_MIME_FIELD_AUTHORIZATION, MIME_FIELD_AUTHORIZATION, TS_MIME_FIELD_BYTES, MIME_FIELD_BYTES, TS_MIME_FIELD_CACHE_CONTROL, MIME_FIELD_CACHE_CONTROL, TS_MIME_FIELD_CLIENT_IP, MIME_FIELD_CLIENT_IP, TS_MIME_FIELD_CONNECTION, MIME_FIELD_CONNECTION, TS_MIME_FIELD_CONTENT_BASE, MIME_FIELD_CONTENT_BASE, TS_MIME_FIELD_CONTENT_ENCODING, MIME_FIELD_CONTENT_ENCODING, TS_MIME_FIELD_CONTENT_LANGUAGE, MIME_FIELD_CONTENT_LANGUAGE, TS_MIME_FIELD_CONTENT_LENGTH, MIME_FIELD_CONTENT_LENGTH, TS_MIME_FIELD_CONTENT_LOCATION, MIME_FIELD_CONTENT_LOCATION, TS_MIME_FIELD_CONTENT_MD5, MIME_FIELD_CONTENT_MD5, TS_MIME_FIELD_CONTENT_RANGE, MIME_FIELD_CONTENT_RANGE, TS_MIME_FIELD_CONTENT_TYPE, MIME_FIELD_CONTENT_TYPE, TS_MIME_FIELD_CONTROL, MIME_FIELD_CONTROL, TS_MIME_FIELD_COOKIE, MIME_FIELD_COOKIE, TS_MIME_FIELD_DATE, MIME_FIELD_DATE, TS_MIME_FIELD_DISTRIBUTION, MIME_FIELD_DISTRIBUTION, TS_MIME_FIELD_ETAG, MIME_FIELD_ETAG, TS_MIME_FIELD_EXPECT, MIME_FIELD_EXPECT, TS_MIME_FIELD_EXPIRES, MIME_FIELD_EXPIRES, TS_MIME_FIELD_FOLLOWUP_TO, MIME_FIELD_FOLLOWUP_TO, TS_MIME_FIELD_FROM, MIME_FIELD_FROM, TS_MIME_FIELD_HOST, MIME_FIELD_HOST, TS_MIME_FIELD_IF_MATCH, MIME_FIELD_IF_MATCH, TS_MIME_FIELD_IF_MODIFIED_SINCE, MIME_FIELD_IF_MODIFIED_SINCE, TS_MIME_FIELD_IF_NONE_MATCH, MIME_FIELD_IF_NONE_MATCH, TS_MIME_FIELD_IF_RANGE, MIME_FIELD_IF_RANGE, TS_MIME_FIELD_IF_UNMODIFIED_SINCE, MIME_FIELD_IF_UNMODIFIED_SINCE, TS_MIME_FIELD_KEEP_ALIVE, MIME_FIELD_KEEP_ALIVE, TS_MIME_FIELD_KEYWORDS, MIME_FIELD_KEYWORDS, TS_MIME_FIELD_LAST_MODIFIED, MIME_FIELD_LAST_MODIFIED, TS_MIME_FIELD_LINES, MIME_FIELD_LINES, TS_MIME_FIELD_LOCATION, MIME_FIELD_LOCATION, TS_MIME_FIELD_MAX_FORWARDS, MIME_FIELD_MAX_FORWARDS, TS_MIME_FIELD_MESSAGE_ID, MIME_FIELD_MESSAGE_ID, TS_MIME_FIELD_NEWSGROUPS, MIME_FIELD_NEWSGROUPS, TS_MIME_FIELD_ORGANIZATION, MIME_FIELD_ORGANIZATION, TS_MIME_FIELD_PATH, MIME_FIELD_PATH, TS_MIME_FIELD_PRAGMA, MIME_FIELD_PRAGMA, TS_MIME_FIELD_PROXY_AUTHENTICATE, MIME_FIELD_PROXY_AUTHENTICATE, TS_MIME_FIELD_PROXY_AUTHORIZATION, MIME_FIELD_PROXY_AUTHORIZATION, TS_MIME_FIELD_PROXY_CONNECTION, MIME_FIELD_PROXY_CONNECTION, TS_MIME_FIELD_PUBLIC, MIME_FIELD_PUBLIC, TS_MIME_FIELD_RANGE, MIME_FIELD_RANGE, TS_MIME_FIELD_REFERENCES, MIME_FIELD_REFERENCES, TS_MIME_FIELD_REFERER, MIME_FIELD_REFERER, TS_MIME_FIELD_REPLY_TO, MIME_FIELD_REPLY_TO, TS_MIME_FIELD_RETRY_AFTER, MIME_FIELD_RETRY_AFTER, TS_MIME_FIELD_SENDER, MIME_FIELD_SENDER, TS_MIME_FIELD_SERVER, MIME_FIELD_SERVER, TS_MIME_FIELD_SET_COOKIE, MIME_FIELD_SET_COOKIE, TS_MIME_FIELD_SUBJECT, MIME_FIELD_SUBJECT, TS_MIME_FIELD_SUMMARY, MIME_FIELD_SUMMARY, TS_MIME_FIELD_TE, MIME_FIELD_TE, TS_MIME_FIELD_TRANSFER_ENCODING, MIME_FIELD_TRANSFER_ENCODING, TS_MIME_FIELD_UPGRADE, MIME_FIELD_UPGRADE, TS_MIME_FIELD_USER_AGENT, MIME_FIELD_USER_AGENT, TS_MIME_FIELD_VARY, MIME_FIELD_VARY, TS_MIME_FIELD_VIA, MIME_FIELD_VIA, TS_MIME_FIELD_WARNING, MIME_FIELD_WARNING, TS_MIME_FIELD_WWW_AUTHENTICATE, MIME_FIELD_WWW_AUTHENTICATE, TS_MIME_FIELD_XREF, MIME_FIELD_XREF, TS_MIME_FIELD_X_FORWARDED_FOR, MIME_FIELD_X_FORWARDED_FOR, TS_MIME_LEN_ACCEPT, MIME_LEN_ACCEPT, TS_MIME_LEN_ACCEPT_CHARSET, MIME_LEN_ACCEPT_CHARSET, TS_MIME_LEN_ACCEPT_ENCODING, MIME_LEN_ACCEPT_ENCODING, TS_MIME_LEN_ACCEPT_LANGUAGE, MIME_LEN_ACCEPT_LANGUAGE, TS_MIME_LEN_ACCEPT_RANGES, MIME_LEN_ACCEPT_RANGES, TS_MIME_LEN_AGE, MIME_LEN_AGE, TS_MIME_LEN_ALLOW, MIME_LEN_ALLOW, TS_MIME_LEN_APPROVED, MIME_LEN_APPROVED, TS_MIME_LEN_AUTHORIZATION, MIME_LEN_AUTHORIZATION, TS_MIME_LEN_BYTES, MIME_LEN_BYTES, TS_MIME_LEN_CACHE_CONTROL, MIME_LEN_CACHE_CONTROL, TS_MIME_LEN_CLIENT_IP, MIME_LEN_CLIENT_IP, TS_MIME_LEN_CONNECTION, MIME_LEN_CONNECTION, TS_MIME_LEN_CONTENT_BASE, MIME_LEN_CONTENT_BASE, TS_MIME_LEN_CONTENT_ENCODING, MIME_LEN_CONTENT_ENCODING, TS_MIME_LEN_CONTENT_LANGUAGE, MIME_LEN_CONTENT_LANGUAGE, TS_MIME_LEN_CONTENT_LENGTH, MIME_LEN_CONTENT_LENGTH, TS_MIME_LEN_CONTENT_LOCATION, MIME_LEN_CONTENT_LOCATION, TS_MIME_LEN_CONTENT_MD5, MIME_LEN_CONTENT_MD5, TS_MIME_LEN_CONTENT_RANGE, MIME_LEN_CONTENT_RANGE, TS_MIME_LEN_CONTENT_TYPE, MIME_LEN_CONTENT_TYPE, TS_MIME_LEN_CONTROL, MIME_LEN_CONTROL, TS_MIME_LEN_COOKIE, MIME_LEN_COOKIE, TS_MIME_LEN_DATE, MIME_LEN_DATE, TS_MIME_LEN_DISTRIBUTION, MIME_LEN_DISTRIBUTION, TS_MIME_LEN_ETAG, MIME_LEN_ETAG, TS_MIME_LEN_EXPECT, MIME_LEN_EXPECT, TS_MIME_LEN_EXPIRES, MIME_LEN_EXPIRES, TS_MIME_LEN_FOLLOWUP_TO, MIME_LEN_FOLLOWUP_TO, TS_MIME_LEN_FROM, MIME_LEN_FROM, TS_MIME_LEN_HOST, MIME_LEN_HOST, TS_MIME_LEN_IF_MATCH, MIME_LEN_IF_MATCH, TS_MIME_LEN_IF_MODIFIED_SINCE, MIME_LEN_IF_MODIFIED_SINCE, TS_MIME_LEN_IF_NONE_MATCH, MIME_LEN_IF_NONE_MATCH, TS_MIME_LEN_IF_RANGE, MIME_LEN_IF_RANGE, TS_MIME_LEN_IF_UNMODIFIED_SINCE, MIME_LEN_IF_UNMODIFIED_SINCE, TS_MIME_LEN_KEEP_ALIVE, MIME_LEN_KEEP_ALIVE, TS_MIME_LEN_KEYWORDS, MIME_LEN_KEYWORDS, TS_MIME_LEN_LAST_MODIFIED, MIME_LEN_LAST_MODIFIED, TS_MIME_LEN_LINES, MIME_LEN_LINES, TS_MIME_LEN_LOCATION, MIME_LEN_LOCATION, TS_MIME_LEN_MAX_FORWARDS, MIME_LEN_MAX_FORWARDS, TS_MIME_LEN_MESSAGE_ID, MIME_LEN_MESSAGE_ID, TS_MIME_LEN_NEWSGROUPS, MIME_LEN_NEWSGROUPS, TS_MIME_LEN_ORGANIZATION, MIME_LEN_ORGANIZATION, TS_MIME_LEN_PATH, MIME_LEN_PATH, TS_MIME_LEN_PRAGMA, MIME_LEN_PRAGMA, TS_MIME_LEN_PROXY_AUTHENTICATE, MIME_LEN_PROXY_AUTHENTICATE, TS_MIME_LEN_PROXY_AUTHORIZATION, MIME_LEN_PROXY_AUTHORIZATION, TS_MIME_LEN_PROXY_CONNECTION, MIME_LEN_PROXY_CONNECTION, TS_MIME_LEN_PUBLIC, MIME_LEN_PUBLIC, TS_MIME_LEN_RANGE, MIME_LEN_RANGE, TS_MIME_LEN_REFERENCES, MIME_LEN_REFERENCES, TS_MIME_LEN_REFERER, MIME_LEN_REFERER, TS_MIME_LEN_REPLY_TO, MIME_LEN_REPLY_TO, TS_MIME_LEN_RETRY_AFTER, MIME_LEN_RETRY_AFTER, TS_MIME_LEN_SENDER, MIME_LEN_SENDER, TS_MIME_LEN_SERVER, MIME_LEN_SERVER, TS_MIME_LEN_SET_COOKIE, MIME_LEN_SET_COOKIE, TS_MIME_LEN_SUBJECT, MIME_LEN_SUBJECT, TS_MIME_LEN_SUMMARY, MIME_LEN_SUMMARY, TS_MIME_LEN_TE, MIME_LEN_TE, TS_MIME_LEN_TRANSFER_ENCODING, MIME_LEN_TRANSFER_ENCODING, TS_MIME_LEN_UPGRADE, MIME_LEN_UPGRADE, TS_MIME_LEN_USER_AGENT, MIME_LEN_USER_AGENT, TS_MIME_LEN_VARY, MIME_LEN_VARY, TS_MIME_LEN_VIA, MIME_LEN_VIA, TS_MIME_LEN_WARNING, MIME_LEN_WARNING, TS_MIME_LEN_WWW_AUTHENTICATE, MIME_LEN_WWW_AUTHENTICATE, TS_MIME_LEN_XREF, MIME_LEN_XREF, TS_MIME_LEN_X_FORWARDED_FOR, MIME_LEN_X_FORWARDED_FOR, TS_HTTP_METHOD_CONNECT, HTTP_METHOD_CONNECT, TS_HTTP_METHOD_DELETE, HTTP_METHOD_DELETE, TS_HTTP_METHOD_GET, HTTP_METHOD_GET, TS_HTTP_METHOD_HEAD, HTTP_METHOD_HEAD, TS_HTTP_METHOD_ICP_QUERY, HTTP_METHOD_ICP_QUERY, TS_HTTP_METHOD_OPTIONS, HTTP_METHOD_OPTIONS, TS_HTTP_METHOD_POST, HTTP_METHOD_POST, TS_HTTP_METHOD_PURGE, HTTP_METHOD_PURGE, TS_HTTP_METHOD_PUT, HTTP_METHOD_PUT, TS_HTTP_METHOD_TRACE, HTTP_METHOD_TRACE, TS_HTTP_LEN_CONNECT, HTTP_LEN_CONNECT, TS_HTTP_LEN_DELETE, HTTP_LEN_DELETE, TS_HTTP_LEN_GET, HTTP_LEN_GET, TS_HTTP_LEN_HEAD, HTTP_LEN_HEAD, TS_HTTP_LEN_ICP_QUERY, HTTP_LEN_ICP_QUERY, TS_HTTP_LEN_OPTIONS, HTTP_LEN_OPTIONS, TS_HTTP_LEN_POST, HTTP_LEN_POST, TS_HTTP_LEN_PURGE, HTTP_LEN_PURGE, TS_HTTP_LEN_PUT, HTTP_LEN_PUT, TS_HTTP_LEN_TRACE, HTTP_LEN_TRACE, TS_HTTP_VALUE_BYTES, HTTP_VALUE_BYTES, TS_HTTP_VALUE_CHUNKED, HTTP_VALUE_CHUNKED, TS_HTTP_VALUE_CLOSE, HTTP_VALUE_CLOSE, TS_HTTP_VALUE_COMPRESS, HTTP_VALUE_COMPRESS, TS_HTTP_VALUE_DEFLATE, HTTP_VALUE_DEFLATE, TS_HTTP_VALUE_GZIP, HTTP_VALUE_GZIP, TS_HTTP_VALUE_IDENTITY, HTTP_VALUE_IDENTITY, TS_HTTP_VALUE_KEEP_ALIVE, HTTP_VALUE_KEEP_ALIVE, TS_HTTP_VALUE_MAX_AGE, HTTP_VALUE_MAX_AGE, TS_HTTP_VALUE_MAX_STALE, HTTP_VALUE_MAX_STALE, TS_HTTP_VALUE_MIN_FRESH, HTTP_VALUE_MIN_FRESH, TS_HTTP_VALUE_MUST_REVALIDATE, HTTP_VALUE_MUST_REVALIDATE, TS_HTTP_VALUE_NONE, HTTP_VALUE_NONE, TS_HTTP_VALUE_NO_CACHE, HTTP_VALUE_NO_CACHE, TS_HTTP_VALUE_NO_STORE, HTTP_VALUE_NO_STORE, TS_HTTP_VALUE_NO_TRANSFORM, HTTP_VALUE_NO_TRANSFORM, TS_HTTP_VALUE_ONLY_IF_CACHED, HTTP_VALUE_ONLY_IF_CACHED, TS_HTTP_VALUE_PRIVATE, HTTP_VALUE_PRIVATE, TS_HTTP_VALUE_PROXY_REVALIDATE, HTTP_VALUE_PROXY_REVALIDATE, TS_HTTP_VALUE_PUBLIC, HTTP_VALUE_PUBLIC, TS_HTTP_VALUE_S_MAXAGE, HTTP_VALUE_S_MAXAGE, TS_HTTP_LEN_BYTES, HTTP_LEN_BYTES, TS_HTTP_LEN_CHUNKED, HTTP_LEN_CHUNKED, TS_HTTP_LEN_CLOSE, HTTP_LEN_CLOSE, TS_HTTP_LEN_COMPRESS, HTTP_LEN_COMPRESS, TS_HTTP_LEN_DEFLATE, HTTP_LEN_DEFLATE, TS_HTTP_LEN_GZIP, HTTP_LEN_GZIP, TS_HTTP_LEN_IDENTITY, HTTP_LEN_IDENTITY, TS_HTTP_LEN_KEEP_ALIVE, HTTP_LEN_KEEP_ALIVE, TS_HTTP_LEN_MAX_AGE, HTTP_LEN_MAX_AGE, TS_HTTP_LEN_MAX_STALE, HTTP_LEN_MAX_STALE, TS_HTTP_LEN_MIN_FRESH, HTTP_LEN_MIN_FRESH, TS_HTTP_LEN_MUST_REVALIDATE, HTTP_LEN_MUST_REVALIDATE, TS_HTTP_LEN_NONE, HTTP_LEN_NONE, TS_HTTP_LEN_NO_CACHE, HTTP_LEN_NO_CACHE, TS_HTTP_LEN_NO_STORE, HTTP_LEN_NO_STORE, TS_HTTP_LEN_NO_TRANSFORM, HTTP_LEN_NO_TRANSFORM, TS_HTTP_LEN_ONLY_IF_CACHED, HTTP_LEN_ONLY_IF_CACHED, TS_HTTP_LEN_PRIVATE, HTTP_LEN_PRIVATE, TS_HTTP_LEN_PROXY_REVALIDATE, HTTP_LEN_PROXY_REVALIDATE, TS_HTTP_LEN_PUBLIC, HTTP_LEN_PUBLIC, TS_HTTP_LEN_S_MAXAGE, HTTP_LEN_S_MAXAGE, NEW, TS_MAX_API_STATS, RecAllocateRawStatBlock(), Warning, Debug, state_arg_table, ink_strlcpy(), traffic_server_version, appVersionInfo, AppVersionInfo::VersionStr, ts_major_version, ts_minor_version, and ts_patch_version.

Referenced by main(), and plugin_init().

TSReturnCode ink_sanity_check_stat_structure ( void *  obj) [inline]

References TS_ERROR, and TS_SUCCESS.

bool isWriteable ( TSMBuffer  bufp)
static MIMEFieldSDKHandle* sdk_alloc_field_handle ( TSMBuffer  bufp,
MIMEHdrImpl mh 
) [static]
static void sdk_free_field_handle ( TSMBuffer  bufp,
MIMEFieldSDKHandle field_handle 
) [static]
TSReturnCode sdk_sanity_check_alt_info ( TSHttpAltInfo  info)
TSReturnCode sdk_sanity_check_cachekey ( TSCacheKey  key) [inline]
TSReturnCode sdk_sanity_check_continuation ( TSCont  cont)
TSReturnCode sdk_sanity_check_field_handle ( TSMLoc  field,
TSMLoc  parent_hdr = NULL 
)
TSReturnCode sdk_sanity_check_hook_id ( TSHttpHookID  id)
TSReturnCode sdk_sanity_check_http_hdr_handle ( TSMLoc  field)

References TS_NULL_MLOC, TS_ERROR, HdrHeapObjImpl::m_type, HDR_HEAP_OBJ_HTTP_HEADER, and TS_SUCCESS.

Referenced by TSMimeHdrDestroy(), TSMimeHdrClone(), TSMimeHdrCopy(), TSMimeHdrPrint(), TSMimeHdrParse(), TSMimeHdrLengthGet(), TSMimeHdrFieldsClear(), TSMimeHdrFieldsCount(), TSMimeHdrFieldGet(), TSMimeHdrFieldFind(), TSMimeHdrFieldAppend(), TSMimeHdrFieldRemove(), TSMimeHdrFieldDestroy(), TSMimeHdrFieldCreate(), TSMimeHdrFieldCreateNamed(), TSMimeHdrFieldCopy(), TSMimeHdrFieldClone(), TSMimeHdrFieldCopyValues(), TSMimeHdrFieldNext(), TSMimeHdrFieldNextDup(), TSMimeHdrFieldLengthGet(), TSMimeHdrFieldNameGet(), TSMimeHdrFieldNameSet(), TSMimeHdrFieldValuesClear(), TSMimeHdrFieldValuesCount(), TSMimeHdrFieldValueStringGet(), TSMimeHdrFieldValueDateGet(), TSMimeHdrFieldValueIntGet(), TSMimeHdrFieldValueInt64Get(), TSMimeHdrFieldValueUintGet(), TSMimeHdrFieldValueStringSet(), TSMimeHdrFieldValueDateSet(), TSMimeHdrFieldValueIntSet(), TSMimeHdrFieldValueInt64Set(), TSMimeHdrFieldValueUintSet(), TSMimeHdrFieldValueAppend(), TSMimeHdrFieldValueStringInsert(), TSMimeHdrFieldValueIntInsert(), TSMimeHdrFieldValueUintInsert(), TSMimeHdrFieldValueDateInsert(), TSMimeHdrFieldValueDelete(), TSHttpHdrDestroy(), TSHttpHdrClone(), TSHttpHdrCopy(), TSHttpHdrPrint(), TSHttpHdrParseReq(), TSHttpHdrParseResp(), TSHttpHdrLengthGet(), TSHttpHdrTypeGet(), TSHttpHdrTypeSet(), TSHttpHdrVersionGet(), TSHttpHdrVersionSet(), TSHttpHdrMethodGet(), TSHttpHdrMethodSet(), TSHttpHdrUrlGet(), TSHttpHdrUrlSet(), TSHttpHdrStatusGet(), TSHttpHdrStatusSet(), TSHttpHdrReasonGet(), and TSHttpHdrReasonSet().

TSReturnCode sdk_sanity_check_http_parser ( TSHttpParser  parser)

References TS_ERROR, and TS_SUCCESS.

Referenced by TSHttpParserClear(), and TSHttpParserDestroy().

TSReturnCode sdk_sanity_check_http_ssn ( TSHttpSsn  ssnp)
TSReturnCode sdk_sanity_check_mbuffer ( TSMBuffer  bufp)

References HdrHeapSDKHandle::m_heap, HdrHeap::m_magic, HDR_BUF_MAGIC_ALIVE, TS_ERROR, and TS_SUCCESS.

Referenced by sdk_free_field_handle(), TSHandleMLocRelease(), TSMBufferCreate(), TSMBufferDestroy(), TSUrlCreate(), TSUrlClone(), TSUrlCopy(), TSUrlPrint(), TSUrlParse(), TSUrlLengthGet(), TSUrlStringGet(), URLPartGet(), URLPartSet(), TSUrlPortGet(), TSUrlPortSet(), TSUrlFtpTypeGet(), TSUrlFtpTypeSet(), TSUrlPercentEncode(), TSMimeHdrCreate(), TSMimeHdrDestroy(), TSMimeHdrClone(), TSMimeHdrCopy(), TSMimeHdrPrint(), TSMimeHdrParse(), TSMimeHdrLengthGet(), TSMimeHdrFieldsClear(), TSMimeHdrFieldsCount(), TSMimeHdrFieldEqual(), TSMimeHdrFieldGet(), TSMimeHdrFieldFind(), TSMimeHdrFieldAppend(), TSMimeHdrFieldRemove(), TSMimeHdrFieldDestroy(), TSMimeHdrFieldCreate(), TSMimeHdrFieldCreateNamed(), TSMimeHdrFieldCopy(), TSMimeHdrFieldClone(), TSMimeHdrFieldCopyValues(), TSMimeHdrFieldNext(), TSMimeHdrFieldNextDup(), TSMimeHdrFieldLengthGet(), TSMimeHdrFieldNameGet(), TSMimeHdrFieldNameSet(), TSMimeHdrFieldValuesClear(), TSMimeHdrFieldValuesCount(), TSMimeHdrFieldValueStringGet(), TSMimeHdrFieldValueDateGet(), TSMimeHdrFieldValueIntGet(), TSMimeHdrFieldValueInt64Get(), TSMimeHdrFieldValueUintGet(), TSMimeHdrFieldValueStringSet(), TSMimeHdrFieldValueDateSet(), TSMimeHdrFieldValueIntSet(), TSMimeHdrFieldValueInt64Set(), TSMimeHdrFieldValueUintSet(), TSMimeHdrFieldValueAppend(), TSMimeHdrFieldValueStringInsert(), TSMimeHdrFieldValueIntInsert(), TSMimeHdrFieldValueUintInsert(), TSMimeHdrFieldValueDateInsert(), TSMimeHdrFieldValueDelete(), TSHttpHdrCreate(), TSHttpHdrDestroy(), TSHttpHdrClone(), TSHttpHdrCopy(), TSHttpHdrPrint(), TSHttpHdrParseReq(), TSHttpHdrParseResp(), TSHttpHdrLengthGet(), TSHttpHdrTypeGet(), TSHttpHdrTypeSet(), TSHttpHdrVersionGet(), TSHttpHdrVersionSet(), TSHttpHdrMethodGet(), TSHttpHdrMethodSet(), TSHttpHdrUrlGet(), TSHttpHdrUrlSet(), TSHttpHdrStatusGet(), TSHttpHdrStatusSet(), TSHttpHdrReasonGet(), TSHttpHdrReasonSet(), TSCacheHttpInfoReqGet(), TSCacheHttpInfoRespGet(), TSHttpTxnClientReqGet(), TSHttpTxnPristineUrlGet(), TSHttpTxnClientRespGet(), TSHttpTxnServerReqGet(), TSHttpTxnServerRespGet(), TSHttpTxnCachedReqGet(), TSHttpTxnCachedRespGet(), TSHttpTxnCachedRespModifiableGet(), TSHttpTxnCacheLookupUrlGet(), TSHttpTxnCachedUrlSet(), TSHttpTxnNewCacheLookupDo(), TSHttpTxnRedirectRequest(), TSHttpTxnTransformRespGet(), TSHttpAltInfoClientReqGet(), TSHttpAltInfoCachedReqGet(), TSHttpAltInfoCachedRespGet(), TSICPCachedReqGet(), TSICPCachedRespGet(), and TSFetchPageRespGet().

TSReturnCode sdk_sanity_check_mime_hdr_handle ( TSMLoc  field)
TSReturnCode sdk_sanity_check_mime_parser ( TSMimeParser  parser)

References TS_ERROR, and TS_SUCCESS.

Referenced by TSMimeParserClear(), and TSMimeParserDestroy().

TSReturnCode sdk_sanity_check_null_ptr ( void *  ptr)

References TS_ERROR, and TS_SUCCESS.

Referenced by sdk_alloc_field_handle(), TSBase64Decode(), TSBase64Encode(), TSPluginRegister(), TSUrlCreate(), TSUrlClone(), TSUrlParse(), TSUrlStringGet(), URLPartGet(), TSStringPercentEncode(), TSStringPercentDecode(), TSMimeHdrCreate(), TSMimeHdrClone(), TSMimeHdrParse(), TSMimeHdrFieldFind(), TSMimeHdrFieldCreate(), TSMimeHdrFieldCreateNamed(), TSMimeHdrFieldClone(), TSMimeHdrFieldNameGet(), TSMimeHdrFieldNameSet(), TSMimeHdrFieldValueStringGet(), TSMimeHdrFieldValueStringSet(), TSMimeHdrFieldValueAppend(), TSMimeHdrFieldValueStringInsert(), TSHttpHdrParseReq(), TSHttpHdrParseResp(), TSHttpHdrMethodGet(), TSHttpHdrMethodSet(), TSHttpHdrReasonGet(), TSHttpHdrReasonSet(), TSCacheKeyHostNameSet(), TSMgmtUpdateRegister(), TSHttpTxnClientReqGet(), TSHttpTxnPristineUrlGet(), TSHttpTxnEffectiveUrlStringGet(), TSHttpTxnClientRespGet(), TSHttpTxnServerReqGet(), TSHttpTxnServerRespGet(), TSHttpTxnCachedReqGet(), TSHttpTxnCachedRespGet(), TSHttpTxnCachedRespModifiableGet(), TSHttpTxnCacheLookupStatusGet(), TSHttpTxnCacheLookupCountGet(), TSHttpTxnErrorBodySet(), TSHttpTxnServerRequestBodySet(), TSHttpTxnParentProxySet(), TSHttpArgIndexReserve(), TSHttpArgIndexLookup(), TSHttpArgIndexNameLookup(), TSHttpTxnMilestoneGet(), TSVConnCreate(), TSHttpTxnServerIntercept(), TSHttpTxnIntercept(), TSHostLookup(), TSCacheReady(), TSCacheDataTypeReady(), TSStatCreate(), TSStatFindName(), TSTextLogObjectCreate(), TSTextLogObjectWrite(), TSHttpSsnClientFdGet(), TSHttpTxnClientFdGet(), TSMatcherReadIntoBuffer(), TSMatcherTokLine(), TSMatcherExtractIPRange(), TSMatcherLineDestroy(), TSMatcherParseSrcIPConfigLine(), TSMatcherLineName(), TSMatcherLineValue(), TSSignalWarning(), TSICPCachedReqGet(), TSICPCachedRespGet(), TSRedirectUrlSet(), TSFetchRespGet(), TSFetchPageRespGet(), TSAIOWrite(), TSHttpTxnConfigIntGet(), TSHttpTxnConfigFloatGet(), TSHttpTxnConfigStringSet(), TSHttpTxnConfigStringGet(), TSHttpTxnConfigFind(), INKUDPPacketBufferBlockGet(), INKUDPPacketFromAddressGet(), INKUDPPacketFromPortGet(), INKUDPPacketConnGet(), INKUDPPacketDestroy(), TSIOBufferStart(), TSIOBufferWrite(), and TSIOBufferReaderAlloc().

TSReturnCode sdk_sanity_check_txn ( TSHttpTxn  txnp)

References HTTP_SM_MAGIC_ALIVE, TS_SUCCESS, and TS_ERROR.

Referenced by TSHttpTxnHookAdd(), TSHttpTxnSsnGet(), TSHttpTxnClientDataGet(), TSHttpTxnClientReqGet(), TSHttpTxnPristineUrlGet(), TSHttpTxnEffectiveUrlStringGet(), TSHttpTxnClientRespGet(), TSHttpTxnServerReqGet(), TSHttpTxnServerRespGet(), TSHttpTxnCachedReqGet(), TSHttpTxnCachedRespGet(), TSHttpTxnCachedRespModifiableGet(), TSHttpTxnCacheLookupStatusGet(), TSHttpTxnCacheLookupCountGet(), TSHttpTxnCacheLookupStatusSet(), TSHttpTxnCacheLookupUrlGet(), TSHttpTxnCachedUrlSet(), TSHttpTxnNewCacheLookupDo(), TSHttpTxnSecondUrlTryLock(), TSHttpTxnFollowRedirect(), TSHttpTxnRedirectRequest(), TSHttpTxnActiveTimeoutSet(), TSHttpTxnConnectTimeoutSet(), TSHttpTxnDNSTimeoutSet(), TSHttpTxnNoActivityTimeoutSet(), TSHttpTxnCacheLookupSkip(), TSHttpTxnServerRespNoStore(), TSHttpTxnServerRespIgnore(), TSHttpTxnShutDown(), TSHttpTxnAborted(), TSHttpTxnReqCacheableSet(), TSHttpTxnRespCacheableSet(), TSHttpTxnClientReqIsServerStyle(), TSHttpTxnOverwriteExpireTime(), TSHttpTxnUpdateCachedObject(), TSHttpTxnTransformRespGet(), TSHttpTxnClientAddrGet(), TSHttpTxnIncomingAddrGet(), TSHttpTxnServerAddrGet(), TSHttpTxnServerAddrSet(), TSHttpTxnOutgoingAddrSet(), TSHttpTxnNextHopAddrGet(), TSHttpTxnOutgoingTransparencySet(), TSHttpTxnClientPacketMarkSet(), TSHttpTxnServerPacketMarkSet(), TSHttpTxnClientPacketTosSet(), TSHttpTxnServerPacketTosSet(), TSHttpTxnErrorBodySet(), TSHttpTxnServerRequestBodySet(), TSHttpTxnParentProxyGet(), TSHttpTxnParentProxySet(), TSHttpTxnUntransformedRespCache(), TSHttpTxnTransformedRespCache(), TSHttpTxnReenable(), TSHttpTxnArgSet(), TSHttpTxnArgGet(), TSHttpTxnSetHttpRetStatus(), TSHttpTxnSetHttpRetBody(), TSHttpTxnCntl(), TSHttpTxnServerStateGet(), TSHttpTxnDebugSet(), TSHttpTxnDebugGet(), TSHttpTxnClientReqHdrBytesGet(), TSHttpTxnClientReqBodyBytesGet(), TSHttpTxnServerReqHdrBytesGet(), TSHttpTxnServerReqBodyBytesGet(), TSHttpTxnServerRespHdrBytesGet(), TSHttpTxnServerRespBodyBytesGet(), TSHttpTxnClientRespHdrBytesGet(), TSHttpTxnClientRespBodyBytesGet(), TSHttpTxnPushedRespHdrBytesGet(), TSHttpTxnPushedRespBodyBytesGet(), TSHttpTxnMilestoneGet(), TSHttpTxnCachedRespTimeGet(), TSHttpTxnLookingUpTypeGet(), TSTransformCreate(), TSHttpTxnServerIntercept(), TSHttpTxnIntercept(), TSHttpTxnClientFdGet(), TSCacheUrlSet(), TSRedirectUrlSet(), TSRedirectUrlGet(), TSHttpIsInternalRequest(), TSSkipRemappingSet(), TSHttpTxnConfigIntSet(), TSHttpTxnConfigIntGet(), TSHttpTxnConfigFloatSet(), TSHttpTxnConfigFloatGet(), TSHttpTxnConfigStringSet(), TSHttpTxnConfigStringGet(), TSHttpTxnPrivateSessionSet(), and TSHttpTxnBackgroundFillStarted().

TSReturnCode sdk_sanity_check_url_handle ( TSMLoc  field)
bool ssl_register_protocol ( const char *  ,
Continuation  
)
bool ssl_unregister_protocol ( const char *  ,
Continuation  
)
void TSActionCancel ( TSAction  actionp)
int TSActionDone ( TSAction  actionp)
char* TSAIOBufGet ( TSAIOCallback  data)

Async disk IO buffer get.

Returns:
char* to the buffer

References AIOCallback::aiocb, and ink_aiocb::aio_buf.

int TSAIONBytesGet ( TSAIOCallback  data)

Async disk IO get number of bytes.

Returns:
the number of bytes

References AIOCallback::aio_result.

TSReturnCode TSAIORead ( int  fd,
off_t  offset,
char *  buf,
size_t  buffSize,
TSCont  contp 
)
TSReturnCode TSAIOThreadNumSet ( int  thread_num)

Async disk IO set number of threads.

Returns:
TS_SUCCESS or TS_ERROR.

References ink_aio_thread_num_set(), TS_SUCCESS, and TS_ERROR.

TSReturnCode TSAIOWrite ( int  fd,
off_t  offset,
char *  buf,
size_t  bufSize,
TSCont  contp 
)
TSReturnCode TSBase64Decode ( const char *  str,
size_t  str_len,
unsigned char *  dst,
size_t  dst_size,
size_t *  length 
)
TSReturnCode TSBase64Encode ( const char *  str,
size_t  str_len,
char *  dst,
size_t  dst_size,
size_t *  length 
)
TSReturnCode TSCacheDataTypeReady ( TSCacheDataType  type,
int *  is_ready 
)
TSCacheHttpInfo TSCacheHttpInfoCopy ( TSCacheHttpInfo  infop)

References NEW.

TSCacheHttpInfo TSCacheHttpInfoCreate ( void  )
void TSCacheHttpInfoDestroy ( TSCacheHttpInfo  infop)
void TSCacheHttpInfoKeySet ( TSCacheHttpInfo  infop,
TSCacheKey  keyp 
)
void TSCacheHttpInfoReqGet ( TSCacheHttpInfo  infop,
TSMBuffer bufp,
TSMLoc obj 
)
time_t TSCacheHttpInfoReqSentTimeGet ( TSCacheHttpInfo  infop)
void TSCacheHttpInfoReqSet ( TSCacheHttpInfo  infop,
TSMBuffer  bufp,
TSMLoc  obj 
)

References SET_HTTP_HDR.

void TSCacheHttpInfoRespGet ( TSCacheHttpInfo  infop,
TSMBuffer bufp,
TSMLoc obj 
)
time_t TSCacheHttpInfoRespReceivedTimeGet ( TSCacheHttpInfo  infop)
void TSCacheHttpInfoRespSet ( TSCacheHttpInfo  infop,
TSMBuffer  bufp,
TSMLoc  obj 
)

References SET_HTTP_HDR.

int64_t TSCacheHttpInfoSizeGet ( TSCacheHttpInfo  infop)
void TSCacheHttpInfoSizeSet ( TSCacheHttpInfo  infop,
int64_t  size 
)
int TSCacheHttpInfoVector ( TSCacheHttpInfo  infop,
void *  data,
int  length 
)
TSCacheKey TSCacheKeyCreate ( void  )

Creates (allocates memory for) a new cache key.

References NEW, sdk_assert, sdk_sanity_check_cachekey(), and TS_SUCCESS.

Referenced by SDK_API_TSCache().

TSReturnCode TSCacheKeyDataTypeSet ( TSCacheKey  key,
TSCacheDataType  type 
)
TSReturnCode TSCacheKeyDestroy ( TSCacheKey  key)

Destroys a cache key.

You must destroy cache keys when you are finished with them, i.e. after all reads and writes are completed.

Parameters:
keyto be destroyed.

References sdk_assert, sdk_sanity_check_cachekey(), TS_SUCCESS, CACHE_INFO_MAGIC_ALIVE, TS_ERROR, ats_free(), CacheInfo::hostname, CacheInfo::magic, and CACHE_INFO_MAGIC_DEAD.

Referenced by cache_handler(), and SDK_API_TSCache().

TSReturnCode TSCacheKeyDigestFromUrlSet ( TSCacheKey  key,
TSMLoc  url 
)
TSReturnCode TSCacheKeyDigestSet ( TSCacheKey  key,
const char *  input,
int  length 
)

Generates a key for an object to be cached (written to the cache).

Parameters:
keyto be associated with the cached object. Before calling TSCacheKeySetDigest() you must create the key with TSCacheKeyCreate().
inputstring that uniquely identifies the object. In most cases, it is the URL of the object.
lengthof the string input.

References sdk_assert, sdk_sanity_check_cachekey(), TS_SUCCESS, sdk_sanity_check_iocore_structure(), CACHE_INFO_MAGIC_ALIVE, and TS_ERROR.

Referenced by SDK_API_TSCache().

TSReturnCode TSCacheKeyHostNameSet ( TSCacheKey  key,
const char *  hostname,
int  host_len 
)

Associates a host name to the cache key.

Use this function if the cache has been partitioned by hostname. The hostname tells the cache which volume to use for the object.

Parameters:
keyof the cached object.
hostnameto associate with the cache key.
host_lenlength of the string hostname.

References sdk_assert, sdk_sanity_check_cachekey(), TS_SUCCESS, sdk_sanity_check_null_ptr(), CACHE_INFO_MAGIC_ALIVE, TS_ERROR, CacheInfo::hostname, ats_malloc(), memcpy, and CacheInfo::len.

TSReturnCode TSCacheKeyPinnedSet ( TSCacheKey  key,
time_t  pin_in_cache 
)
TSAction TSCacheRead ( TSCont  contp,
TSCacheKey  key 
)

Asks the Traffic Server cache if the object corresponding to key exists in the cache and can be read.

If the object can be read, the Traffic Server cache calls the continuation contp back with the event TS_EVENT_CACHE_OPEN_READ. In this case, the cache also passes contp a cache vconnection and contp can then initiate a read operation on that vconnection using TSVConnRead.

If the object cannot be read, the cache calls contp back with the event TS_EVENT_CACHE_OPEN_READ_FAILED. The user (contp) has the option to cancel the action returned by TSCacheRead. Note that reentrant calls are possible, i.e. the cache can call back the user (contp) in the same call.

Parameters:
contpcontinuation to be called back if a read operation is permissible.
keycache key corresponding to the object to be read.
Returns:
something allowing the user to cancel or schedule the cache read.

References sdk_assert, sdk_sanity_check_iocore_structure(), TS_SUCCESS, sdk_sanity_check_cachekey(), FORCE_PLUGIN_MUTEX, cacheProcessor, CacheProcessor::open_read(), CacheInfo::cache_key, CacheInfo::frag_type, CacheInfo::hostname, and CacheInfo::len.

Referenced by cache_handler().

TSReturnCode TSCacheReady ( int *  is_ready)
TSAction TSCacheRemove ( TSCont  contp,
TSCacheKey  key 
)

Removes the object corresponding to key from the cache.

If the object was removed successfully, the cache calls contp back with the event TS_EVENT_CACHE_REMOVE. If the object was not found in the cache, the cache calls contp back with the event TS_EVENT_CACHE_REMOVE_FAILED.

In both of these callbacks, the user (contp) does not have to do anything. The user does not get any vconnection from the cache, since no data needs to be transferred. When the cache calls contp back with TS_EVENT_CACHE_REMOVE, the remove has already been commited.

Parameters:
contpcontinuation that the cache calls back reporting the success or failure of the remove.
keycache key corresponding to the object to be removed.
Returns:
something allowing the user to cancel or schedule the remove.

References sdk_assert, sdk_sanity_check_iocore_structure(), TS_SUCCESS, sdk_sanity_check_cachekey(), FORCE_PLUGIN_MUTEX, cacheProcessor, CacheProcessor::remove(), CacheInfo::cache_key, CacheInfo::frag_type, CacheInfo::hostname, and CacheInfo::len.

Referenced by cache_handler().

TSAction TSCacheScan ( TSCont  contp,
TSCacheKey  key,
int  KB_per_second 
)
TSReturnCode TSCacheUrlSet ( TSHttpTxn  txnp,
const char *  url,
int  length 
)
TSAction TSCacheWrite ( TSCont  contp,
TSCacheKey  key 
)

Asks the Traffic Server cache if contp can start writing the object (corresponding to key) to the cache.

If the object can be written, the cache calls contp back with the event TS_EVENT_CACHE_OPEN_WRITE. In this case, the cache also passes contp a cache vconnection and contp can then initiate a write operation on that vconnection using TSVConnWrite. The object is not committed to the cache until the vconnection is closed. When all data has been transferred, the user (contp) must do an TSVConnClose. In case of any errors, the user MUST do an TSVConnAbort(contp, 0).

If the object cannot be written, the cache calls contp back with the event TS_EVENT_CACHE_OPEN_WRITE_FAILED. This can happen, for example, if there is another object with the same key being written to the cache. The user (contp) has the option to cancel the action returned by TSCacheWrite.

Note that reentrant calls are possible, i.e. the cache can call back the user (contp) in the same call.

Parameters:
contpcontinuation that the cache calls back (telling it whether the write operation can proceed or not).
keycache key corresponding to the object to be cached.
Returns:
something allowing the user to cancel or schedule the cache write.

References sdk_assert, sdk_sanity_check_iocore_structure(), TS_SUCCESS, sdk_sanity_check_cachekey(), FORCE_PLUGIN_MUTEX, cacheProcessor, CacheProcessor::open_write(), CacheInfo::cache_key, CacheInfo::frag_type, CacheInfo::pin_in_cache, CacheInfo::hostname, and CacheInfo::len.

Referenced by SDK_API_TSCache().

void* TSConfigDataGet ( TSConfig  configp)

References INKConfigImpl::mdata.

Referenced by SDK_API_TSConfig().

const char* TSConfigDirGet ( void  )

Gets the path of the directory of Traffic Server configuration.

Returns:
pointer to Traffic Server configuration directory.

References system_config_directory.

Referenced by SDK_API_TSfopen().

TSConfig TSConfigGet ( unsigned int  id)
void TSConfigRelease ( unsigned int  id,
TSConfig  configp 
)
unsigned int TSConfigSet ( unsigned int  id,
void *  data,
TSConfigDestroyFunc  funcp 
)
int TSContCall ( TSCont  contp,
TSEvent  event,
void *  edata 
)
TSCont TSContCreate ( TSEventFunc  funcp,
TSMutex  mutexp 
)
void* TSContDataGet ( TSCont  contp)
void TSContDataSet ( TSCont  contp,
void *  data 
)
void TSContDestroy ( TSCont  contp)
TSMutex TSContMutexGet ( TSCont  contp)
TSAction TSContSchedule ( TSCont  contp,
ink_hrtime  timeout,
TSThreadPool  tp 
)
TSAction TSContScheduleEvery ( TSCont  contp,
ink_hrtime  every,
TSThreadPool  tp 
)
void TSDebug ( const char *  tag,
const char *  format_str,
  ... 
)
void TSDebugSpecific ( int  debug_flag,
const char *  tag,
const char *  format_str,
  ... 
)
double TSdrandom ( void  )
void TSError ( const char *  fmt,
  ... 
)
void TSfclose ( TSFile  filep)

Closes the file to which filep points and frees the data structures and buffers associated with it.

If the file was opened for writing, any pending data is flushed.

Parameters:
filepfile to be closed.

References FileImpl::fclose().

Referenced by SDK_API_TSfopen(), and log_test_handler().

TSReturnCode TSFetchPageRespGet ( TSHttpTxn  txnp,
TSMBuffer bufp,
TSMLoc obj 
)
void TSFetchPages ( TSFetchUrlParams_t params)
char* TSFetchRespGet ( TSHttpTxn  txnp,
int *  length 
)
void TSFetchUrl ( const char *  headers,
int  request_len,
sockaddr const *  ip,
TSCont  contp,
TSFetchWakeUpOptions  callback_options,
TSFetchEvent  events 
)
void TSfflush ( TSFile  filep)

Flushes pending data that has been buffered up in memory from previous calls to TSfwrite().

Parameters:
filepfile to flush.

References FileImpl::fflush().

Referenced by SDK_API_TSfopen().

char* TSfgets ( TSFile  filep,
char *  buf,
size_t  length 
)

Reads a line from the file pointed to by filep into the buffer buf.

Lines are terminated by a line feed character, '
'. The line placed in the buffer includes the line feed character and is terminated with a NULL. If the line is longer than length bytes then only the first length-minus-1 bytes are placed in buf.

Parameters:
filepfile to read from.
bufbuffer to read into.
lengthsize of the buffer to read into.
Returns:
pointer to the string read into the buffer buf.

References FileImpl::fgets().

Referenced by SDK_API_TSfopen(), and log_test_handler().

TSFile TSfopen ( const char *  filename,
const char *  mode 
)

Opens a file for reading or writing and returns a descriptor for accessing the file.

The current implementation cannot open a file for both reading or writing. See the SDK Programmer's Guide for sample code.

Parameters:
filenamefile to be opened.
modespecifies whether to open the file for reading or writing. If mode is "r" then the file is opened for reading. If mode is "w" then the file is opened for writing. Currently "r" and "w" are the only two valid modes for opening a file.
Returns:
descriptor for the file that TSfopen opens. Descriptors of type TSFile can be greater than 256.

References NEW, and FileImpl::fopen().

Referenced by SDK_API_TSfopen(), and log_test_handler().

size_t TSfread ( TSFile  filep,
void *  buf,
size_t  length 
)

Attempts to read length bytes of data from the file pointed to by filep into the buffer buf.

Parameters:
filepname of the file to read from.
bufbuffer to read into.
lengthamount of data to read, in bytes.
Returns:
number of bytes read. If end of the file, it returns 0. If the file was not opened for reading or if an error occurs while reading the file, it returns -1.

References FileImpl::fread().

Referenced by SDK_API_TSfopen().

size_t TSfwrite ( TSFile  filep,
const void *  buf,
size_t  length 
)

Attempts to write length bytes of data from the buffer buf to the file filep.

Make sure that filep is open for writing. You might want to check the number of bytes written (TSfwrite() returns this value) against the value of length. If it is less, there might be insufficient space on disk, for example.

Parameters:
filepfile to write into.
bufbuffer containing the data to be written.
lengthamount of data to write to filep, in bytes.
Returns:
number of bytes written to filep. If the file was not opened for writing, it returns -1. If an error occurs while writing, it returns the number of bytes successfully written.

References FileImpl::fwrite().

Referenced by SDK_API_TSfopen().

TSReturnCode TSHandleMLocRelease ( TSMBuffer  bufp,
TSMLoc  parent,
TSMLoc  mloc 
)

Releases the TSMLoc mloc created from the TSMLoc parent.

If there is no parent TSMLoc, use TS_NULL_MLOC.

Parameters:
bufpmarshal buffer containing the TSMLoc handle to be released.
parentlocation of the parent object from which the handle was created.
mloclocation of the handle to be released.

References TS_NULL_MLOC, TS_SUCCESS, sdk_assert, sdk_sanity_check_mbuffer(), HdrHeapObjImpl::m_type, HDR_HEAP_OBJ_URL, HDR_HEAP_OBJ_HTTP_HEADER, HDR_HEAP_OBJ_MIME_HEADER, HDR_HEAP_OBJ_FIELD_SDK_HANDLE, sdk_sanity_check_field_handle(), TS_ERROR, sdk_free_field_handle(), and ink_release_assert.

Referenced by SDK_API_TSUrl(), SDK_API_TSHttpHdr(), SDK_API_TSMimeHdrField(), SDK_API_TSHttpHdrParse(), SDK_API_TSMimeHdrParse(), SDK_API_TSUrlParse(), cache_hook_handler(), transform_hook_handler(), and get_request_id().

TSAction TSHostLookup ( TSCont  contp,
const char *  hostname,
size_t  namelen 
)
sockaddr const* TSHostLookupResultAddrGet ( TSHostLookupResult  lookup_result) [read]
ink_hrtime TShrtime ( void  )
TSReturnCode TSHttpAltInfoCachedReqGet ( TSHttpAltInfo  infop,
TSMBuffer bufp,
TSMLoc obj 
)
TSReturnCode TSHttpAltInfoCachedRespGet ( TSHttpAltInfo  infop,
TSMBuffer bufp,
TSMLoc obj 
)
TSReturnCode TSHttpAltInfoClientReqGet ( TSHttpAltInfo  infop,
TSMBuffer bufp,
TSMLoc obj 
)
void TSHttpAltInfoQualitySet ( TSHttpAltInfo  infop,
float  quality 
)
TSReturnCode TSHttpArgIndexLookup ( int  arg_idx,
const char **  name,
const char **  description 
)
TSReturnCode TSHttpArgIndexNameLookup ( const char *  name,
int *  arg_idx,
const char **  description 
)
TSReturnCode TSHttpArgIndexReserve ( const char *  name,
const char *  description,
int *  arg_idx 
)
TSVConn TSHttpConnect ( sockaddr const *  addr)
TSVConn TSHttpConnectTransparent ( sockaddr const *  client_addr,
sockaddr const *  server_addr 
)
int TSHttpCurrentActiveClientConnectionsGet ( void  )
int TSHttpCurrentCacheConnectionsGet ( void  )
int TSHttpCurrentClientConnectionsGet ( void  )
int TSHttpCurrentIdleClientConnectionsGet ( void  )
int TSHttpCurrentServerConnectionsGet ( void  )
TSReturnCode TSHttpHdrClone ( TSMBuffer  dest_bufp,
TSMBuffer  src_bufp,
TSMLoc  src_hdr,
TSMLoc locp 
)
TSReturnCode TSHttpHdrCopy ( TSMBuffer  dest_bufp,
TSMLoc  dest_offset,
TSMBuffer  src_bufp,
TSMLoc  src_offset 
)

Copies the contents of the HTTP header located at src_loc within src_bufp to the HTTP header located at dest_loc within dest_bufp.

TSHttpHdrCopy() works correctly even if src_bufp and dest_bufp point to different marshal buffers. Make sure that you create the destination HTTP header before copying into it.

Note: TSHttpHdrCopy() appends the port number to the domain of the URL portion of the header. For example, a copy of http://www.example.com appears as http://www.example.com:80 in the destination buffer.

Parameters:
dest_bufpmarshal buffer to contain the copied header.
dest_offsetlocation of the copied header.
src_bufpmarshal buffer containing the source header.
src_offsetlocation of the source header.

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_http_hdr_handle(), isWriteable(), TS_ERROR, HdrHeapObjImpl::m_type, HDR_HEAP_OBJ_HTTP_HEADER, TSHttpHdrTypeSet(), HTTPHdrImpl::m_polarity, and http_hdr_copy_onto().

Referenced by SDK_API_TSHttpHdr().

TSMLoc TSHttpHdrCreate ( TSMBuffer  bufp)
void TSHttpHdrDestroy ( TSMBuffer  bufp,
TSMLoc  offset 
)

Destroys the HTTP header located at hdr_loc within the marshal buffer bufp.

Do not forget to release the handle hdr_loc with a call to TSHandleMLocRelease().

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, and sdk_sanity_check_http_hdr_handle().

Referenced by SDK_API_TSHttpHdr().

int TSHttpHdrLengthGet ( TSMBuffer  bufp,
TSMLoc  obj 
)
const char* TSHttpHdrMethodGet ( TSMBuffer  bufp,
TSMLoc  obj,
int *  length 
)
TSReturnCode TSHttpHdrMethodSet ( TSMBuffer  bufp,
TSMLoc  obj,
const char *  value,
int  length 
)
TSParseResult TSHttpHdrParseReq ( TSHttpParser  parser,
TSMBuffer  bufp,
TSMLoc  offset,
const char **  start,
const char *  end 
)

Parses an HTTP request header.

The HTTP header must have already been created, and must reside inside the marshal buffer bufp. The start argument points to the current position of the string buffer being parsed. The end argument points to one byte after the end of the buffer to be parsed. On return, TSHttpHdrParseReq() modifies start to point past the last character parsed.

It is possible to parse an HTTP request header a single byte at a time using repeated calls to TSHttpHdrParseReq(). As long as an error does not occur, the TSHttpHdrParseReq() function will consume that single byte and ask for more.

Parameters:
parserparses the HTTP header.
bufpmarshal buffer containing the HTTP header to be parsed.
offsetlocation of the HTTP header within bufp.
startboth an input and output. On input, it points to the current position of the string buffer being parsed. On return, start is modified to point past the last character parsed.
endpoints to one byte after the end of the buffer to be parsed.
Returns:
status of the parse:
  • TS_PARSE_ERROR means there was a parsing error.
  • TS_PARSE_DONE means that the end of the header was reached (the parser encountered a "\r\n\r\n" pattern).
  • TS_PARSE_CONT means that parsing of the header stopped because the parser reached the end of the buffer (large headers can span multiple buffers).

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_http_hdr_handle(), sdk_sanity_check_null_ptr(), isWriteable(), TS_PARSE_ERROR, SET_HTTP_HDR, ink_assert, HTTPHdr::m_http, HdrHeapObjImpl::m_type, HDR_HEAP_OBJ_HTTP_HEADER, TSHttpHdrTypeSet(), TS_HTTP_TYPE_REQUEST, and HTTPHdr::parse_req().

Referenced by SDK_API_TSHttpHdrParse().

TSParseResult TSHttpHdrParseResp ( TSHttpParser  parser,
TSMBuffer  bufp,
TSMLoc  obj,
const char **  start,
const char *  end 
)
void TSHttpHdrPrint ( TSMBuffer  bufp,
TSMLoc  obj,
TSIOBuffer  iobufp 
)
const char* TSHttpHdrReasonGet ( TSMBuffer  bufp,
TSMLoc  obj,
int *  length 
)
const char* TSHttpHdrReasonLookup ( TSHttpStatus  status)

References http_hdr_reason_lookup().

Referenced by SDK_API_TSHttpHdr().

TSReturnCode TSHttpHdrReasonSet ( TSMBuffer  bufp,
TSMLoc  obj,
const char *  value,
int  length 
)
TSHttpStatus TSHttpHdrStatusGet ( TSMBuffer  bufp,
TSMLoc  obj 
)
TSReturnCode TSHttpHdrStatusSet ( TSMBuffer  bufp,
TSMLoc  obj,
TSHttpStatus  status 
)
TSHttpType TSHttpHdrTypeGet ( TSMBuffer  bufp,
TSMLoc  obj 
)
TSReturnCode TSHttpHdrTypeSet ( TSMBuffer  bufp,
TSMLoc  obj,
TSHttpType  type 
)
TSReturnCode TSHttpHdrUrlGet ( TSMBuffer  bufp,
TSMLoc  obj,
TSMLoc locp 
)
TSReturnCode TSHttpHdrUrlSet ( TSMBuffer  bufp,
TSMLoc  obj,
TSMLoc  url 
)
int TSHttpHdrVersionGet ( TSMBuffer  bufp,
TSMLoc  obj 
)
TSReturnCode TSHttpHdrVersionSet ( TSMBuffer  bufp,
TSMLoc  obj,
int  ver 
)
void TSHttpHookAdd ( TSHttpHookID  id,
TSCont  contp 
)
void TSHttpIcpDynamicSet ( int  value)

References icp_dynamic_enabled.

TSReturnCode TSHttpIsInternalRequest ( TSHttpTxn  txnp)
void TSHttpParserClear ( TSHttpParser  parser)
TSHttpParser TSHttpParserCreate ( void  )

References ats_malloc(), and http_parser_init().

Referenced by SDK_API_TSHttpHdrParse().

void TSHttpParserDestroy ( TSHttpParser  parser)
TSAction TSHttpSchedule ( TSCont  contp,
TSHttpTxn  txnp,
ink_hrtime  timeout 
)
void* TSHttpSsnArgGet ( TSHttpSsn  ssnp,
int  arg_idx 
)
void TSHttpSsnArgSet ( TSHttpSsn  ssnp,
int  arg_idx,
void *  arg 
)
sockaddr const* TSHttpSsnClientAddrGet ( TSHttpSsn  ssnp) [read]
TSReturnCode TSHttpSsnClientFdGet ( TSHttpSsn  ssnp,
int *  fdp 
)
int TSHttpSsnDebugGet ( TSHttpSsn  ssnp)
void TSHttpSsnDebugSet ( TSHttpSsn  ssnp,
int  on 
)

Set the session specific debugging flag for this client session.

When turned on, internal debug messeges related to this session and all transactions in the session will be written even if the debug tag isn't on.

Parameters:
ssnpClient session to change.
onset to 1 to turn on, 0 to turn off.

References sdk_assert, sdk_sanity_check_http_ssn(), TS_SUCCESS, and on.

void TSHttpSsnHookAdd ( TSHttpSsn  ssnp,
TSHttpHookID  id,
TSCont  contp 
)
sockaddr const* TSHttpSsnIncomingAddrGet ( TSHttpSsn  ssnp) [read]
void TSHttpSsnReenable ( TSHttpSsn  ssnp,
TSEvent  event 
)
int TSHttpSsnTransactionCount ( TSHttpSsn  ssnp)
TSReturnCode TSHttpTxnAborted ( TSHttpTxn  txnp)

Check if transaction was aborted (due client/server errors etc.)

Returns:
1 if transaction was aborted

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, HttpSM::t_state, HttpTransact::State::squid_codes, SQUID_LOG_ERR_CLIENT_ABORT, SQUID_LOG_TCP_SWAPFAIL, HttpTransact::State::current, HttpTransact::ABORTED, and TS_ERROR.

void TSHttpTxnActiveTimeoutSet ( TSHttpTxn  txnp,
int  timeout 
)

timeout is in msec overrides as proxy.config.http.transaction_active_timeout_out

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, and HttpTransact::State::api_txn_active_timeout_value.

void* TSHttpTxnArgGet ( TSHttpTxn  txnp,
int  arg_idx 
)
void TSHttpTxnArgSet ( TSHttpTxn  txnp,
int  arg_idx,
void *  arg 
)
int TSHttpTxnBackgroundFillStarted ( TSHttpTxn  txnp)
TSReturnCode TSHttpTxnCachedReqGet ( TSHttpTxn  txnp,
TSMBuffer bufp,
TSMLoc obj 
)
TSReturnCode TSHttpTxnCachedRespGet ( TSHttpTxn  txnp,
TSMBuffer bufp,
TSMLoc obj 
)
TSReturnCode TSHttpTxnCachedRespModifiableGet ( TSHttpTxn  txnp,
TSMBuffer bufp,
TSMLoc obj 
)
TSReturnCode TSHttpTxnCachedRespTimeGet ( TSHttpTxn  txnp,
time_t *  resp_time 
)
TSReturnCode TSHttpTxnCachedUrlSet ( TSHttpTxn  txnp,
TSMBuffer  bufp,
TSMLoc  obj 
)
TSReturnCode TSHttpTxnCacheLookupCountGet ( TSHttpTxn  txnp,
int *  lookup_count 
)
TSReturnCode TSHttpTxnCacheLookupSkip ( TSHttpTxn  txnp)
TSReturnCode TSHttpTxnCacheLookupStatusGet ( TSHttpTxn  txnp,
int *  lookup_status 
)
TSReturnCode TSHttpTxnCacheLookupStatusSet ( TSHttpTxn  txnp,
int  cachelookup 
)
TSReturnCode TSHttpTxnCacheLookupUrlGet ( TSHttpTxn  txnp,
TSMBuffer  bufp,
TSMLoc  obj 
)
sockaddr const* TSHttpTxnClientAddrGet ( TSHttpTxn  txnp) [read]

Get client address for transaction txnp.

Retrieves the socket address of the remote client that has connected to Traffic Server for transaction txnp. The return structure is the generic socket address storage in order to be address-family agnostic. The user of this function can then go on to do the approriate thing with the type specified in the ss_family field of the structure whether that be for IPv4, IPv6, or any other address family.

Returns:
Client address for connection to client in transaction txnp.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, TSHttpTxnSsnGet(), and TSHttpSsnClientAddrGet().

Referenced by checkHttpTxnClientIPGet(), and checkHttpTxnClientAddrGet().

TSReturnCode TSHttpTxnClientDataGet ( TSHttpTxn  txnp,
const char **  bufp,
int *  len 
)
TSReturnCode TSHttpTxnClientFdGet ( TSHttpTxn  txnp,
int *  fdp 
)
void TSHttpTxnClientKeepaliveSet ( TSHttpTxn  txnp,
int  set 
)
TSReturnCode TSHttpTxnClientPacketMarkSet ( TSHttpTxn  txnp,
int  mark 
)

Change packet firewall mark for the client side connection.

Note:
The change takes effect immediately
Returns:
TS_SUCCESS if the client connection was modified

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, HttpSM::ua_session, TS_ERROR, HttpClientSession::get_netvc(), NetVConnection::options, NetVCOptions::packet_mark, and NetVConnection::apply_options().

TSReturnCode TSHttpTxnClientPacketTosSet ( TSHttpTxn  txnp,
int  tos 
)

Change packet TOS for the client side connection.

Note:
The change takes effect immediately
TOS is deprecated and replaced by DSCP, this is still used to set DSCP however the first 2 bits of this value will be ignored as they now belong to the ECN field.
Returns:
TS_SUCCESS if the client connection was modified

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, HttpSM::ua_session, TS_ERROR, HttpClientSession::get_netvc(), NetVConnection::options, NetVCOptions::packet_tos, and NetVConnection::apply_options().

int64_t TSHttpTxnClientReqBodyBytesGet ( TSHttpTxn  txnp)
TSReturnCode TSHttpTxnClientReqGet ( TSHttpTxn  txnp,
TSMBuffer bufp,
TSMLoc obj 
)
int TSHttpTxnClientReqHdrBytesGet ( TSHttpTxn  txnp)
int TSHttpTxnClientReqIsServerStyle ( TSHttpTxn  txnp)
int64_t TSHttpTxnClientRespBodyBytesGet ( TSHttpTxn  txnp)
TSReturnCode TSHttpTxnClientRespGet ( TSHttpTxn  txnp,
TSMBuffer bufp,
TSMLoc obj 
)
int TSHttpTxnClientRespHdrBytesGet ( TSHttpTxn  txnp)
TSReturnCode TSHttpTxnCntl ( TSHttpTxn  txnp,
TSHttpCntlType  cntl,
void *  data 
)
TSReturnCode TSHttpTxnConfigFind ( const char *  name,
int  length,
TSOverridableConfigKey conf,
TSRecordDataType type 
)

References sdk_assert, sdk_sanity_check_null_ptr(), TS_SUCCESS, TS_CONFIG_NULL, TS_RECORDDATATYPE_INT, TS_CONFIG_HTTP_CACHE_HTTP, TS_CONFIG_HTTP_CACHE_FUZZ_TIME, TS_CONFIG_HTTP_CHUNKING_ENABLED, TS_CONFIG_NET_SOCK_PACKET_TOS_OUT, TS_CONFIG_HTTP_CACHE_MAX_STALE_AGE, TS_CONFIG_HTTP_CACHE_FUZZ_MIN_TIME, TS_CONFIG_HTTP_RESPONSE_SERVER_STR, TS_RECORDDATATYPE_STRING, TS_CONFIG_HTTP_KEEP_ALIVE_POST_OUT, TS_CONFIG_NET_SOCK_OPTION_FLAG_OUT, TS_CONFIG_NET_SOCK_PACKET_MARK_OUT, TS_CONFIG_HTTP_SERVER_TCP_INIT_CWND, TS_CONFIG_HTTP_SEND_HTTP11_REQUESTS, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_FROM, TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_IN, TS_CONFIG_HTTP_DOC_IN_CACHE_SKIP_DNS, TS_CONFIG_HTTP_SHARE_SERVER_SESSIONS, TS_CONFIG_HTTP_DOWN_SERVER_CACHE_TIME, TS_CONFIG_URL_REMAP_PRISTINE_HOST_HDR, TS_CONFIG_HTTP_INSERT_REQUEST_VIA_STR, TS_CONFIG_HTTP_ORIGIN_MAX_CONNECTIONS, TS_CONFIG_HTTP_CACHE_REQUIRED_HEADERS, TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_OUT, TS_CONFIG_HTTP_CACHE_FUZZ_PROBABILITY, TS_CONFIG_HTTP_RESPONSE_SERVER_ENABLED, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_COOKIE, TS_CONFIG_HTTP_INSERT_RESPONSE_VIA_STR, TS_CONFIG_HTTP_NEGATIVE_CACHING_ENABLED, TS_CONFIG_HTTP_CACHE_WHEN_TO_REVALIDATE, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_REFERER, TS_CONFIG_NET_SOCK_RECV_BUFFER_SIZE_OUT, TS_CONFIG_NET_SOCK_SEND_BUFFER_SIZE_OUT, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_TIMEOUT, TS_CONFIG_HTTP_NEGATIVE_CACHING_LIFETIME, TS_CONFIG_HTTP_CACHE_HEURISTIC_LM_FACTOR, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_CLIENT_IP, TS_CONFIG_HTTP_ANONYMIZE_INSERT_CLIENT_IP, TS_CONFIG_HTTP_DOWN_SERVER_ABORT_THRESHOLD, TS_CONFIG_HTTP_CACHE_IGNORE_AUTHENTICATION, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_USER_AGENT, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_RR_RETRIES, TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_NO_CACHE, TS_CONFIG_HTTP_CACHE_IMS_ON_CLIENT_NO_CACHE, TS_CONFIG_HTTP_CACHE_IGNORE_SERVER_NO_CACHE, TS_CONFIG_HTTP_CACHE_HEURISTIC_MIN_LIFETIME, TS_CONFIG_HTTP_CACHE_HEURISTIC_MAX_LIFETIME, TS_CONFIG_HTTP_INSERT_SQUID_X_FORWARDED_FOR, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES, TS_CONFIG_HTTP_FORWARD_PROXY_AUTH_TO_PARENT, TS_CONFIG_HTTP_CACHE_GUARANTEED_MIN_LIFETIME, TS_CONFIG_HTTP_CACHE_GUARANTEED_MAX_LIFETIME, TS_CONFIG_HTTP_POST_CONNECT_ATTEMPTS_TIMEOUT, TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_CC_MAX_AGE, TS_CONFIG_HTTP_TRANSACTION_ACTIVE_TIMEOUT_OUT, TS_CONFIG_HTTP_BACKGROUND_FILL_ACTIVE_TIMEOUT, TS_CONFIG_HTTP_CACHE_CACHE_RESPONSES_TO_COOKIES, TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_IN, TS_CONFIG_HTTP_CACHE_CACHE_URLS_THAT_LOOK_DYNAMIC, TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_IN, TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_OUT, TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_OUT, TS_CONFIG_HTTP_BACKGROUND_FILL_COMPLETED_THRESHOLD, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES_DEAD_SERVER, and TS_ERROR.

Referenced by SDK_API_OVERRIDABLE_CONFIGS().

TSReturnCode TSHttpTxnConfigFloatGet ( TSHttpTxn  txnp,
TSOverridableConfigKey  conf,
TSMgmtFloat value 
)
TSReturnCode TSHttpTxnConfigFloatSet ( TSHttpTxn  txnp,
TSOverridableConfigKey  conf,
TSMgmtFloat  value 
)
TSReturnCode TSHttpTxnConfigIntGet ( TSHttpTxn  txnp,
TSOverridableConfigKey  conf,
TSMgmtInt value 
)
TSReturnCode TSHttpTxnConfigIntSet ( TSHttpTxn  txnp,
TSOverridableConfigKey  conf,
TSMgmtInt  value 
)
TSReturnCode TSHttpTxnConfigStringGet ( TSHttpTxn  txnp,
TSOverridableConfigKey  conf,
const char **  value,
int *  length 
)
TSReturnCode TSHttpTxnConfigStringSet ( TSHttpTxn  txnp,
TSOverridableConfigKey  conf,
const char *  value,
int  length 
)
void TSHttpTxnConnectTimeoutSet ( TSHttpTxn  txnp,
int  timeout 
)

timeout is in msec overrides as proxy.config.http.connect_attempts_timeout

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, and HttpTransact::State::api_txn_connect_timeout_value.

int TSHttpTxnDebugGet ( TSHttpTxn  txnp)

Returns the transaction specific debugging flag for this transaction.

Parameters:
txnptransaction to check.
Returns:
1 if enabled, 0 otherwise.

References sdk_assert, sdk_sanity_check_txn(), and TS_SUCCESS.

void TSHttpTxnDebugSet ( TSHttpTxn  txnp,
int  on 
)

Set the transaction specific debugging flag for this transaction.

When turned on, internal debug messeges related to this transaction will be written even if the debug tag isn't on.

Parameters:
txnptransaction to change.
onset to 1 to turn on, 0 to turn off.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, and on.

void TSHttpTxnDNSTimeoutSet ( TSHttpTxn  txnp,
int  timeout 
)

timeout is in msec overrides as proxy.config.dns.lookup_timeout

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, and HttpTransact::State::api_txn_dns_timeout_value.

char* TSHttpTxnEffectiveUrlStringGet ( TSHttpTxn  txnp,
int *  length 
)

Get the effective URL for the transaction.

The effective URL is the URL taking in to account both the explicit URL in the request and the HOST field.

A possibly non-null terminated string is returned.

Note:
The returned string is allocated and must be freed by the caller after use with TSfree.
Parameters:
lengthString length return, may be NULL.

References sdk_assert, TS_SUCCESS, sdk_sanity_check_txn(), sdk_sanity_check_null_ptr(), HttpSM::t_state, and HttpTransact::State::hdr_info.

void TSHttpTxnErrorBodySet ( TSHttpTxn  txnp,
char *  buf,
int  buflength,
char *  mimetype 
)
TSReturnCode TSHttpTxnFollowRedirect ( TSHttpTxn  txnp,
int  on 
)
int TSHttpTxnGetMaxHttpRetBodySize ( void  )
void TSHttpTxnHookAdd ( TSHttpTxn  txnp,
TSHttpHookID  id,
TSCont  contp 
)
TSReturnCode TSHttpTxnHookRegisteredFor ( TSHttpTxn  txnp,
TSHttpHookID  id,
TSEventFunc  funcp 
)
sockaddr const* TSHttpTxnIncomingAddrGet ( TSHttpTxn  txnp) [read]

Get the incoming address.

Note:
The pointer is valid only for the current callback. Clients that need to keep the value across callbacks must maintain their own storage.
Returns:
Local address of the client connection for transaction txnp.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, TSHttpTxnSsnGet(), and TSHttpSsnIncomingAddrGet().

Referenced by checkHttpTxnIncomingAddrGet().

void TSHttpTxnIntercept ( TSCont  contp,
TSHttpTxn  txnp 
)

Allows a plugin take over the servicing of the request as though it was the origin server.

contp will be sent TS_EVENT_NET_ACCEPT. The edata passed with TS_NET_EVENT_ACCEPT is an TSVConn just as it would be for a normal accept. The plugin must act as if it is an http server and read the http request and body off the TSVConn and send an http response header and body.

TSHttpTxnIntercept() must be called be called from only TS_HTTP_READ_REQUEST_HOOK. Using TSHttpTxnIntercept will bypass the Traffic Server cache. If response sent by the plugin should be cached, use TSHttpTxnServerIntercept() instead. TSHttpTxnIntercept() primary use is allow plugins to serve data about their functioning directly.

TSHttpTxnIntercept() must only be called once per transaction.

Parameters:
contpcontinuation called to handle the interception.
txnptransaction to be intercepted.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, sdk_sanity_check_continuation(), sdk_sanity_check_null_ptr(), Continuation::mutex, HttpSM::plugin_tunnel_type, HTTP_PLUGIN_AS_INTERCEPT, HttpSM::plugin_tunnel, PluginVCCore::alloc(), and PluginVCCore::set_accept_cont().

Referenced by cont_test_handler().

int TSHttpTxnLookingUpTypeGet ( TSHttpTxn  txnp)
TSReturnCode TSHttpTxnMilestoneGet ( TSHttpTxn  txnp,
TSMilestonesType  milestone,
TSHRTime time 
)

Return the particular milestone timer for the transaction.

If 0 is returned, it means the transaction has not yet reached that milestone. Asking for an "unknown" milestone is an error.

Parameters:
txnpthe transaction pointer
milestonethe requested milstone timer was created.
timea pointer to a TSHRTime where we will store the timer
Returns:
TS_SUCCESS if the milestone is supported, TS_ERROR otherwise

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, sdk_sanity_check_null_ptr(), TS_MILESTONE_UA_BEGIN, HttpSM::milestones, TransactionMilestones::ua_begin, TS_MILESTONE_UA_READ_HEADER_DONE, TransactionMilestones::ua_read_header_done, TS_MILESTONE_UA_BEGIN_WRITE, TransactionMilestones::ua_begin_write, TS_MILESTONE_UA_CLOSE, TransactionMilestones::ua_close, TS_MILESTONE_SERVER_FIRST_CONNECT, TransactionMilestones::server_first_connect, TS_MILESTONE_SERVER_CONNECT, TransactionMilestones::server_connect, TS_MILESTONE_SERVER_CONNECT_END, TransactionMilestones::server_connect_end, TS_MILESTONE_SERVER_BEGIN_WRITE, TransactionMilestones::server_begin_write, TS_MILESTONE_SERVER_FIRST_READ, TransactionMilestones::server_first_read, TS_MILESTONE_SERVER_READ_HEADER_DONE, TransactionMilestones::server_read_header_done, TS_MILESTONE_SERVER_CLOSE, TransactionMilestones::server_close, TS_MILESTONE_CACHE_OPEN_READ_BEGIN, TransactionMilestones::cache_open_read_begin, TS_MILESTONE_CACHE_OPEN_READ_END, TransactionMilestones::cache_open_read_end, TS_MILESTONE_CACHE_OPEN_WRITE_BEGIN, TransactionMilestones::cache_open_write_begin, TS_MILESTONE_CACHE_OPEN_WRITE_END, TransactionMilestones::cache_open_write_end, TS_MILESTONE_DNS_LOOKUP_BEGIN, TransactionMilestones::dns_lookup_begin, TS_MILESTONE_DNS_LOOKUP_END, TransactionMilestones::dns_lookup_end, TS_MILESTONE_SM_START, TransactionMilestones::sm_start, TS_MILESTONE_SM_FINISH, TransactionMilestones::sm_finish, and TS_ERROR.

TSReturnCode TSHttpTxnNewCacheLookupDo ( TSHttpTxn  txnp,
TSMBuffer  bufp,
TSMLoc  url_loc 
)
sockaddr const* TSHttpTxnNextHopAddrGet ( TSHttpTxn  txnp) [read]

Get the next hop address.

Note:
The pointer is valid only for the current callback. Clients that need to keep the value across callbacks must maintain their own storage.
Returns:
The address of the next hop for transaction txnp.

Return zero if the server structure is not yet constructed.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, HttpSM::t_state, and HttpTransact::State::current.

Referenced by checkHttpTxnNextHopIPGet().

void TSHttpTxnNoActivityTimeoutSet ( TSHttpTxn  txnp,
int  timeout 
)

timeout is in msec overrides as proxy.config.http.transaction_no_activity_timeout_out

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, and HttpTransact::State::api_txn_no_activity_timeout_value.

TSReturnCode TSHttpTxnOutgoingAddrSet ( TSHttpTxn  txnp,
const struct sockaddr *  addr 
)
TSReturnCode TSHttpTxnOutgoingTransparencySet ( TSHttpTxn  txnp,
int  flag 
)
void TSHttpTxnOverwriteExpireTime ( TSHttpTxn  txnp,
time_t  expire_time 
)
TSReturnCode TSHttpTxnParentProxyGet ( TSHttpTxn  txnp,
char **  hostname,
int *  port 
)

Retrieves the parent proxy hostname and port, if parent proxying is enabled.

If parent proxying is not enabled, TSHttpTxnParentProxyGet() sets hostname to NULL and port to -1.

Parameters:
txnpHTTP transaction whose parent proxy to get.
hostnameof the parent proxy.
portparent proxy's port.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, HttpSM::t_state, HttpTransact::State::api_info, _HttpApiInfo::parent_proxy_name, and _HttpApiInfo::parent_proxy_port.

Referenced by checkHttpTxnParentProxy().

void TSHttpTxnParentProxySet ( TSHttpTxn  txnp,
char *  hostname,
int  port 
)

Sets the parent proxy name and port.

The string hostname is copied into the TSHttpTxn; you can modify or delete the string after calling TSHttpTxnParentProxySet().

Parameters:
txnpHTTP transaction whose parent proxy to set.
hostnameparent proxy host name string.
portparent proxy port to set.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, sdk_sanity_check_null_ptr(), HttpSM::t_state, HttpTransact::State::api_info, _HttpApiInfo::parent_proxy_name, HttpTransact::State::arena, Arena::str_store(), and _HttpApiInfo::parent_proxy_port.

Referenced by checkHttpTxnParentProxy().

TSReturnCode TSHttpTxnPristineUrlGet ( TSHttpTxn  txnp,
TSMBuffer bufp,
TSMLoc url_loc 
)
TSReturnCode TSHttpTxnPrivateSessionSet ( TSHttpTxn  txnp,
int  private_session 
)
int64_t TSHttpTxnPushedRespBodyBytesGet ( TSHttpTxn  txnp)
int TSHttpTxnPushedRespHdrBytesGet ( TSHttpTxn  txnp,
int *  bytes 
)
TSReturnCode TSHttpTxnRedirectRequest ( TSHttpTxn  txnp,
TSMBuffer  bufp,
TSMLoc  url_loc 
)
void TSHttpTxnReenable ( TSHttpTxn  txnp,
TSEvent  event 
)

Notifies the HTTP transaction txnp that the plugin is finished processing the current hook.

The plugin tells the transaction to either continue (TS_EVENT_HTTP_CONTINUE) or stop (TS_EVENT_HTTP_ERROR).

You must always reenable the HTTP transaction after the processing of each transaction event. However, never reenable twice. Reenabling twice is a serious error.

Parameters:
txnptransaction to be reenabled.
eventtells the transaction how to continue:
  • TS_EVENT_HTTP_CONTINUE, which means that the transaction should continue.
  • TS_EVENT_HTTP_ERROR which terminates the transaction and sends an error to the client if no response has already been sent.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, this_ethread(), EThread::tt, REGULAR, eventProcessor, EventProcessor::schedule_imm(), NEW, ET_NET, MUTEX_TRY_LOCK, Continuation::mutex, and HttpSM::state_api_callback().

Referenced by mytest_handler(), ssn_handler(), cache_hook_handler(), transform_hook_handler(), altinfo_hook_handler(), cont_test_handler(), and PrefetchPlugin().

void TSHttpTxnReqCacheableSet ( TSHttpTxn  txnp,
int  flag 
)
void TSHttpTxnRespCacheableSet ( TSHttpTxn  txnp,
int  flag 
)
TSReturnCode TSHttpTxnSecondUrlTryLock ( TSHttpTxn  txnp)
sockaddr const* TSHttpTxnServerAddrGet ( TSHttpTxn  txnp) [read]

Get the origin server address.

Note:
The pointer is valid only for the current callback. Clients that need to keep the value across callbacks must maintain their own storage.
Returns:
The address of the origin server for transaction txnp.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, HttpSM::t_state, and HttpTransact::State::server_info.

Referenced by checkHttpTxnServerIPGet().

TSReturnCode TSHttpTxnServerAddrSet ( TSHttpTxn  txnp,
struct sockaddr const *  addr 
)

Set the origin server address.

This must be invoked before the origin server address is looked up. If called no lookup is done, the address addr is used instead.

Returns:
TS_SUCCESS if the origin server address is set, TS_ERROR otherwise.
Parameters:
addrAddress for origin server.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, ats_ip_copy(), HttpSM::t_state, HttpTransact::State::server_info, HttpTransact::State::api_server_addr_set, and TS_ERROR.

void TSHttpTxnServerIntercept ( TSCont  contp,
TSHttpTxn  txnp 
)

Allows a plugin take over the servicing of the request as though it was the origin server.

In the event a request needs to be made to the server for transaction txnp, contp will be sent TS_EVENT_NET_ACCEPT. The edata passed with TS_NET_EVENT_ACCEPT is an TSVConn just as it would be for a normal accept. The plugin must act as if it is an http server and read the http request and body off the TSVConn and send an http response header and body.

TSHttpTxnInterceptServer() must be not be called after the connection to the server has taken place. The last hook last hook in that TSHttpTxnIntercept() can be called from is TS_HTTP_READ_CACHE_HDR_HOOK. If a connection to the server is not necessary, contp is not called.

The reponse from the plugin is cached subject to standard and configured http caching rules. Should the plugin wish the response not be cached, the plugin must use appropriate http response headers to prevent caching. The primary purpose of TSHttpTxnInterceptServer() is allow plugins to provide gateways to other protocols or to allow to plugin to it's own transport for the next hop to the server. TSHttpTxnInterceptServer() overrides parent cache configuration.

TSHttpTxnInterceptServer() must only be called once per transaction.

Parameters:
contpcontinuation called to handle the interception
txnptransaction to be intercepted.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, sdk_sanity_check_continuation(), sdk_sanity_check_null_ptr(), Continuation::mutex, HttpSM::plugin_tunnel_type, HTTP_PLUGIN_AS_SERVER, HttpSM::plugin_tunnel, PluginVCCore::alloc(), and PluginVCCore::set_accept_cont().

Referenced by cont_test_handler().

TSReturnCode TSHttpTxnServerPacketMarkSet ( TSHttpTxn  txnp,
int  mark 
)

Change packet firewall mark for the server side connection.

Note:
The change takes effect immediately, if no OS connection has been made, then this sets the mark that will be used IF an OS connection is established
Returns:
TS_SUCCESS if the (future?) server connection was modified

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, HttpSM::ua_session, HttpClientSession::get_server_session(), HttpServerSession::get_netvc(), NetVConnection::options, NetVCOptions::packet_mark, NetVConnection::apply_options(), TSHttpTxnConfigIntSet(), and TS_CONFIG_NET_SOCK_PACKET_MARK_OUT.

TSReturnCode TSHttpTxnServerPacketTosSet ( TSHttpTxn  txnp,
int  tos 
)

Change packet TOS for the server side connection.

Note:
The change takes effect immediately, if no OS connection has been made, then this sets the mark that will be used IF an OS connection is established
TOS is deprecated and replaced by DSCP, this is still used to set DSCP however the first 2 bits of this value will be ignored as they now belong to the ECN field.
Returns:
TS_SUCCESS if the (future?) server connection was modified

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, HttpSM::ua_session, HttpClientSession::get_server_session(), HttpServerSession::get_netvc(), NetVConnection::options, NetVCOptions::packet_tos, NetVConnection::apply_options(), TSHttpTxnConfigIntSet(), and TS_CONFIG_NET_SOCK_PACKET_TOS_OUT.

int64_t TSHttpTxnServerReqBodyBytesGet ( TSHttpTxn  txnp)
TSReturnCode TSHttpTxnServerReqGet ( TSHttpTxn  txnp,
TSMBuffer bufp,
TSMLoc obj 
)
int TSHttpTxnServerReqHdrBytesGet ( TSHttpTxn  txnp)
void TSHttpTxnServerRequestBodySet ( TSHttpTxn  txnp,
char *  buf,
int64_t  buflength 
)
int64_t TSHttpTxnServerRespBodyBytesGet ( TSHttpTxn  txnp)
TSReturnCode TSHttpTxnServerRespGet ( TSHttpTxn  txnp,
TSMBuffer bufp,
TSMLoc obj 
)
int TSHttpTxnServerRespHdrBytesGet ( TSHttpTxn  txnp)
TSReturnCode TSHttpTxnServerRespIgnore ( TSHttpTxn  txnp)
TSReturnCode TSHttpTxnServerRespNoStore ( TSHttpTxn  txnp)
TSServerState TSHttpTxnServerStateGet ( TSHttpTxn  txnp)
void TSHttpTxnSetHttpRetBody ( TSHttpTxn  txnp,
const char *  body_msg,
int  plain_msg_flag 
)
void TSHttpTxnSetHttpRetStatus ( TSHttpTxn  txnp,
TSHttpStatus  http_retstatus 
)
TSReturnCode TSHttpTxnShutDown ( TSHttpTxn  txnp,
TSEvent  event 
)
TSHttpSsn TSHttpTxnSsnGet ( TSHttpTxn  txnp)
void TSHttpTxnTransformedRespCache ( TSHttpTxn  txnp,
int  on 
)
TSReturnCode TSHttpTxnTransformRespGet ( TSHttpTxn  txnp,
TSMBuffer bufp,
TSMLoc obj 
)
void TSHttpTxnUntransformedRespCache ( TSHttpTxn  txnp,
int  on 
)
TSReturnCode TSHttpTxnUpdateCachedObject ( TSHttpTxn  txnp)
TSReturnCode TSICPCachedReqGet ( TSCont  contp,
TSMBuffer bufp,
TSMLoc obj 
)
TSReturnCode TSICPCachedRespGet ( TSCont  contp,
TSMBuffer bufp,
TSMLoc obj 
)
void TSICPFreshnessFuncSet ( TSPluginFreshnessCalcFunc  funcp)
const char* TSInstallDirGet ( void  )

Gets the path of the directory in which Traffic Server is installed.

Use this function to specify the location of files that the plugin uses.

Returns:
pointer to Traffic Server install directory.

References system_root_dir.

Referenced by SDK_API_TSPluginDirGet(), and SDK_API_TSfopen().

int TSIsDebugTagSet ( const char *  t)
char* TSMatcherExtractIPRange ( char *  match_str,
uint32_t *  addr1,
uint32_t *  addr2 
)
char* TSMatcherExtractIPRange ( char *  match_str,
sockaddr *  addr1,
sockaddr *  addr2 
)
TSMatcherLine TSMatcherLineCreate ( void  )

References ats_malloc().

void TSMatcherLineDestroy ( TSMatcherLine  ml)
char* TSMatcherLineName ( TSMatcherLine  ml,
int  element 
)
char* TSMatcherLineValue ( TSMatcherLine  ml,
int  element 
)
const char* TSMatcherParseSrcIPConfigLine ( char *  line,
TSMatcherLine  ml 
)
char* TSMatcherReadIntoBuffer ( char *  file_name,
int *  file_len 
)
char* TSMatcherTokLine ( char *  buffer,
char **  last 
)
TSMBuffer TSMBufferCreate ( void  )
TSReturnCode TSMBufferDestroy ( TSMBuffer  bufp)

Ignores the reference count and destroys the marshal buffer bufp.

The internal data buffer associated with the marshal buffer is also destroyed if the marshal buffer allocated it.

Parameters:
bufpmarshal buffer to be destroyed.

References isWriteable(), TS_ERROR, sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, HdrHeapSDKHandle::m_heap, and HdrHeap::destroy().

Referenced by SDK_API_TSUrl(), SDK_API_TSHttpHdr(), SDK_API_TSMimeHdrField(), SDK_API_TSHttpHdrParse(), SDK_API_TSMimeHdrParse(), and SDK_API_TSUrlParse().

TSReturnCode TSMgmtConfigIntSet ( const char *  var_name,
TSMgmtInt  value 
)
TSReturnCode TSMgmtCounterGet ( const char *  var_name,
TSMgmtCounter result 
)
TSReturnCode TSMgmtFloatGet ( const char *  var_name,
TSMgmtFloat result 
)
TSReturnCode TSMgmtIntCreate ( TSRecordType  rec_type,
const char *  name,
TSMgmtInt  data_default,
TSRecordUpdateType  update_type,
TSRecordCheckType  check_type,
const char *  check_regex,
TSRecordAccessType  access_type 
)
TSReturnCode TSMgmtIntGet ( const char *  var_name,
TSMgmtInt result 
)
TSReturnCode TSMgmtStringCreate ( TSRecordType  rec_type,
const char *  name,
const TSMgmtString  data_default,
TSRecordUpdateType  update_type,
TSRecordCheckType  check_type,
const char *  check_regex,
TSRecordAccessType  access_type 
)
TSReturnCode TSMgmtStringGet ( const char *  var_name,
TSMgmtString result 
)
void TSMgmtUpdateRegister ( TSCont  contp,
const char *  plugin_name 
)
const char* TSMimeFieldValueGet ( TSMBuffer  bufp,
TSMLoc  field_obj,
int  idx,
int *  value_len_ptr 
)
void TSMimeFieldValueInsert ( TSMBuffer  bufp,
TSMLoc  field_obj,
const char *  value,
int  length,
int  idx 
)
void TSMimeFieldValueSet ( TSMBuffer  bufp,
TSMLoc  field_obj,
int  idx,
const char *  value,
int  length 
)
TSReturnCode TSMimeHdrClone ( TSMBuffer  dest_bufp,
TSMBuffer  src_bufp,
TSMLoc  src_hdr,
TSMLoc locp 
)

Copies a specified MIME header to a specified marshal buffer, and returns the location of the copied MIME header within the destination marshal buffer.

Unlike TSMimeHdrCopy(), you do not have to create the destination MIME header before cloning. Release the returned TSMLoc handle with a call to TSHandleMLocRelease().

Parameters:
dest_bufpdestination marshal buffer.
src_bufpsource marshal buffer.
src_hdrlocation of the source MIME header.
locpwhere to store the location of the copied MIME header.

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_mime_hdr_handle(), sdk_sanity_check_http_hdr_handle(), sdk_sanity_check_null_ptr(), isWriteable(), TS_ERROR, _hdr_mloc_to_mime_hdr_impl(), and mime_hdr_clone().

TSReturnCode TSMimeHdrCopy ( TSMBuffer  dest_bufp,
TSMLoc  dest_offset,
TSMBuffer  src_bufp,
TSMLoc  src_offset 
)

Copies the contents of the MIME header located at src_loc within src_bufp to the MIME header located at dest_loc within dest_bufp.

TSMimeHdrCopy() works correctly even if src_bufp and dest_bufp point to different marshal buffers. Important: you must create the destination MIME header before copying into it--use TSMimeHdrCreate().

Parameters:
dest_bufpis the destination marshal buffer.
dest_offset
src_bufpis the source marshal buffer.
src_offset

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_mime_hdr_handle(), sdk_sanity_check_http_hdr_handle(), isWriteable(), TS_ERROR, _hdr_mloc_to_mime_hdr_impl(), mime_hdr_fields_clear(), and mime_hdr_copy_onto().

Referenced by SDK_API_TSMimeHdrParse().

TSReturnCode TSMimeHdrCreate ( TSMBuffer  bufp,
TSMLoc locp 
)

Creates a new MIME header within bufp.

Release with a call to TSHandleMLocRelease().

Parameters:
bufpmarshal buffer to contain the new MIME header.
locpbuffer pointer to contain the MLoc

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_null_ptr(), isWriteable(), TS_ERROR, and mime_hdr_create().

Referenced by SDK_API_TSMimeHdrField(), and SDK_API_TSMimeHdrParse().

TSReturnCode TSMimeHdrDestroy ( TSMBuffer  bufp,
TSMLoc  offset 
)

Destroys the MIME header located at hdr_loc within bufp.

Parameters:
bufpmarshal buffer containing the MIME header to destroy.
offsetlocation of the MIME header.

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_mime_hdr_handle(), sdk_sanity_check_http_hdr_handle(), isWriteable(), TS_ERROR, _hdr_mloc_to_mime_hdr_impl(), and mime_hdr_destroy().

Referenced by SDK_API_TSMimeHdrField(), SDK_API_TSHttpHdrParse(), and SDK_API_TSMimeHdrParse().

TSReturnCode TSMimeHdrFieldAppend ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field 
)

Returns the TSMLoc location of a specified MIME field from within the MIME header located at hdr.

The retrieved_str parameter specifies which field to retrieve. For each MIME field in the MIME header, a pointer comparison is done between the field name and retrieved_str. This is a much quicker retrieval function than TSMimeHdrFieldFind() since it obviates the need for a string comparison. However, retrieved_str must be one of the predefined field names of the form TS_MIME_FIELD_XXX for the call to succeed. Release the returned TSMLoc handle with a call to TSHandleMLocRelease().

Parameters:
bufpmarshal buffer containing the MIME field.
hdrlocation of the MIME header containing the field.
retrieved_strspecifies the field to retrieve. Must be one of the predefined field names of the form TS_MIME_FIELD_XXX.
Returns:
location of the requested MIME field. If the requested field cannot be found, returns 0.

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_mime_hdr_handle(), sdk_sanity_check_http_hdr_handle(), sdk_sanity_check_field_handle(), isWriteable(), TS_ERROR, _hdr_mloc_to_mime_hdr_impl(), MIMEFieldSDKHandle::mh, mime_field_create(), memcpy, MIMEFieldSDKHandle::field_ptr, ink_assert, MIMEField::m_ptr_name, and mime_hdr_field_attach().

Referenced by SDK_API_TSMimeHdrField(), and SDK_API_TSMimeHdrParse().

TSReturnCode TSMimeHdrFieldClone ( TSMBuffer  dest_bufp,
TSMLoc  dest_hdr,
TSMBuffer  src_bufp,
TSMLoc  src_hdr,
TSMLoc  src_field,
TSMLoc locp 
)
TSReturnCode TSMimeHdrFieldCopy ( TSMBuffer  dest_bufp,
TSMLoc  dest_hdr,
TSMLoc  dest_field,
TSMBuffer  src_bufp,
TSMLoc  src_hdr,
TSMLoc  src_field 
)
TSReturnCode TSMimeHdrFieldCopyValues ( TSMBuffer  dest_bufp,
TSMLoc  dest_hdr,
TSMLoc  dest_field,
TSMBuffer  src_bufp,
TSMLoc  src_hdr,
TSMLoc  src_field 
)
TSReturnCode TSMimeHdrFieldCreate ( TSMBuffer  bufp,
TSMLoc  mh_mloc,
TSMLoc locp 
)
TSReturnCode TSMimeHdrFieldCreateNamed ( TSMBuffer  bufp,
TSMLoc  mh_mloc,
const char *  name,
int  name_len,
TSMLoc locp 
)
TSReturnCode TSMimeHdrFieldDestroy ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field 
)

Destroys the MIME field located at field within bufp.

You must release the TSMLoc field with a call to TSHandleMLocRelease().

Parameters:
bufpcontains the MIME field to be destroyed.
hdrlocation of the parent header containing the field to be destroyed. This could be the location of a MIME header or HTTP header.
fieldlocation of the field to be destroyed.

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_mime_hdr_handle(), sdk_sanity_check_http_hdr_handle(), sdk_sanity_check_field_handle(), isWriteable(), TS_ERROR, MIMEFieldSDKHandle::mh, ink_release_assert, _hdr_mloc_to_mime_hdr_impl(), ink_assert, mime_hdr_field_delete(), and MIMEFieldSDKHandle::field_ptr.

Referenced by SDK_API_TSMimeHdrField().

int TSMimeHdrFieldEqual ( TSMBuffer  bufp,
TSMLoc  hdr_obj,
TSMLoc  field1_obj,
TSMLoc  field2_obj 
)
TSMLoc TSMimeHdrFieldFind ( TSMBuffer  bufp,
TSMLoc  hdr,
const char *  name,
int  length 
)

Retrieves the TSMLoc location of a specfied MIME field from within the MIME header located at hdr.

The name and length parameters specify which field to retrieve. For each MIME field in the MIME header, a case insensitive string comparison is done between the field name and name. If TSMimeHdrFieldFind() cannot find the requested field, it returns TS_NULL_MLOC. Release the returned TSMLoc handle with a call to TSHandleMLocRelease().

Parameters:
bufpmarshal buffer containing the MIME header field to find.
hdrlocation of the MIME header containing the field.
nameof the field to retrieve.
lengthstring length of the string name. If length is -1, then name is assumed to be null-terminated.
Returns:
location of the requested MIME field. If the field could not be found, returns TS_NULL_MLOC.

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_mime_hdr_handle(), sdk_sanity_check_http_hdr_handle(), sdk_sanity_check_null_ptr(), _hdr_mloc_to_mime_hdr_impl(), mime_hdr_field_find(), TS_NULL_MLOC, sdk_alloc_field_handle(), and MIMEFieldSDKHandle::field_ptr.

Referenced by SDK_API_TSMimeHdrField(), SDK_API_TSMimeHdrParse(), transform_hook_handler(), and get_request_id().

TSMLoc TSMimeHdrFieldGet ( TSMBuffer  bufp,
TSMLoc  hdr,
int  idx 
)

Retrieves the location of a specified MIME field within the MIME header located at hdr_loc within bufp.

The idx parameter specifies which field to retrieve. The fields are numbered from 0 to TSMimeHdrFieldsCount(bufp, hdr_loc) - 1. If idx does not lie within that range then TSMimeHdrFieldGet returns 0. Release the returned handle with a call to TSHandleMLocRelease.

Parameters:
bufpmarshal buffer containing the MIME header.
hdrlocation of the MIME header.
idxindex of the field to get with base at 0.
Returns:
location of the specified MIME field.

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_mime_hdr_handle(), sdk_sanity_check_http_hdr_handle(), _hdr_mloc_to_mime_hdr_impl(), mime_hdr_field_get(), TS_NULL_MLOC, sdk_alloc_field_handle(), and MIMEFieldSDKHandle::field_ptr.

Referenced by SDK_API_TSMimeHdrField(), and SDK_API_TSMimeHdrParse().

int TSMimeHdrFieldLengthGet ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field 
)
const char* TSMimeHdrFieldNameGet ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int *  length 
)
TSReturnCode TSMimeHdrFieldNameSet ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
const char *  name,
int  length 
)
TSMLoc TSMimeHdrFieldNext ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field 
)
TSMLoc TSMimeHdrFieldNextDup ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field 
)
TSReturnCode TSMimeHdrFieldRemove ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field 
)

Removes the MIME field located at field within bufp from the header located at hdr within bufp.

If the specified field cannot be found in the list of fields associated with the header then nothing is done.

Note: removing the field does not destroy the field, it only detaches the field, hiding it from the printed output. The field can be reattached with a call to TSMimeHdrFieldAppend(). If you do not use the detached field you should destroy it with a call to TSMimeHdrFieldDestroy() and release the handle field with a call to TSHandleMLocRelease().

Parameters:
bufpcontains the MIME field to remove.
hdrlocation of the header containing the MIME field to be removed. This header could be an HTTP header or MIME header.
fieldis the location of the field to remove.

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_mime_hdr_handle(), sdk_sanity_check_http_hdr_handle(), sdk_sanity_check_field_handle(), isWriteable(), TS_ERROR, MIMEFieldSDKHandle::mh, _hdr_mloc_to_mime_hdr_impl(), ink_assert, mime_hdr_field_detach(), and MIMEFieldSDKHandle::field_ptr.

Referenced by SDK_API_TSMimeHdrParse().

TSReturnCode TSMimeHdrFieldsClear ( TSMBuffer  bufp,
TSMLoc  offset 
)

Removes and destroys all the MIME fields within the MIME header located at hdr_loc within the marshal buffer bufp.

Parameters:
bufpmarshal buffer containing the MIME header.
offsetlocation of the MIME header.

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_mime_hdr_handle(), sdk_sanity_check_http_hdr_handle(), isWriteable(), TS_ERROR, _hdr_mloc_to_mime_hdr_impl(), and mime_hdr_fields_clear().

Referenced by SDK_API_TSMimeHdrField().

int TSMimeHdrFieldsCount ( TSMBuffer  bufp,
TSMLoc  offset 
)

Returns a count of the number of MIME fields within the MIME header located at hdr_loc within the marshal buffer bufp.

Parameters:
bufpmarshal buffer containing the MIME header.
offsetlocation of the MIME header within bufp.
Returns:
number of MIME fields within the MIME header located at hdr_loc.

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_mime_hdr_handle(), sdk_sanity_check_http_hdr_handle(), _hdr_mloc_to_mime_hdr_impl(), and mime_hdr_fields_count().

Referenced by SDK_API_TSMimeHdrField().

TSReturnCode TSMimeHdrFieldValueAppend ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx,
const char *  value,
int  length 
)
time_t TSMimeHdrFieldValueDateGet ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field 
)
TSReturnCode TSMimeHdrFieldValueDateInsert ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
time_t  value 
)
TSReturnCode TSMimeHdrFieldValueDateSet ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
time_t  value 
)
TSReturnCode TSMimeHdrFieldValueDelete ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx 
)
int64_t TSMimeHdrFieldValueInt64Get ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx 
)
TSReturnCode TSMimeHdrFieldValueInt64Set ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx,
int64_t  value 
)
int TSMimeHdrFieldValueIntGet ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx 
)
TSReturnCode TSMimeHdrFieldValueIntInsert ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx,
int  value 
)
TSReturnCode TSMimeHdrFieldValueIntSet ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx,
int  value 
)
TSReturnCode TSMimeHdrFieldValuesClear ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field 
)

Modified the string value passed from an empty string ("") to NULL. An empty string is also considered to be a token. The correct value of the field after this function should be NULL.

References sdk_assert, sdk_sanity_check_mbuffer(), TS_SUCCESS, sdk_sanity_check_mime_hdr_handle(), sdk_sanity_check_http_hdr_handle(), sdk_sanity_check_field_handle(), isWriteable(), TS_ERROR, mime_field_value_set(), MIMEFieldSDKHandle::mh, and MIMEFieldSDKHandle::field_ptr.

Referenced by TSMimeHdrFieldValueDateInsert(), and SDK_API_TSMimeHdrField().

int TSMimeHdrFieldValuesCount ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field 
)
const char* TSMimeHdrFieldValueStringGet ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx,
int *  value_len_ptr 
)
TSReturnCode TSMimeHdrFieldValueStringInsert ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx,
const char *  value,
int  length 
)
TSReturnCode TSMimeHdrFieldValueStringSet ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx,
const char *  value,
int  length 
)
unsigned int TSMimeHdrFieldValueUintGet ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx 
)
TSReturnCode TSMimeHdrFieldValueUintInsert ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx,
unsigned int  value 
)