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 "HttpSessionAccept.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:

Go to the source code of this file.

Data Structures

struct  _STATE_ARG_TABLE
class  TSHttpSsnCallback
class  TSHttpSMCallback
struct  ActionSink

Defines

#define SET_HTTP_HDR(_HDR, _BUF_PTR, _OBJ_PTR)
#define sdk_assert(EX)   ( (void)((EX) ? (void)0 : _TSReleaseAssert(#EX, __FILE__, __LINE__)) )

Typedefs

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

Functions

void ts_session_protocol_well_known_name_indices_init ()
 Session Protocol initialization.
void TSError (const char *fmt,...)
void _TSReleaseAssert (const char *text, const char *file, int line)
int _TSAssert (const char *, const char *, int)
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_fetch_sm (TSFetchSM fetch_sm)
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_lifecycle_hook_id (TSLifecycleHookID 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, MIMEHdrImpl *mh)
static void sdk_free_field_handle (TSMBuffer bufp, MIMEFieldSDKHandle *field_handle)
void api_init ()
void * _TSmalloc (size_t size, const char *)
void * _TSrealloc (void *ptr, size_t size, const char *)
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, TSMLoc)
 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 location 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, 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 specified 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 TSLifecycleHookAdd (TSLifecycleHookID 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 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 TSHttpTxnNewCacheLookupDo (TSHttpTxn txnp, TSMBuffer bufp, TSMLoc url_loc)
TSReturnCode TSHttpTxnSecondUrlTryLock (TSHttpTxn txnp)
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 TSHttpTxnServerRespNoStoreSet (TSHttpTxn txnp, int flag)
 Set flag indicating whether or not to cache the server response for given TSHttpTxn.
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)
void * TSHttpSsnSSLConnectionGet (TSHttpSsn ssnp)
 Get SSL object of this session.
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.
void TSHttpTxnClientIncomingPortSet (TSHttpTxn txnp, int port)
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, size_t buflength, char *mimetype)
 Sets an error type body to a transaction.
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)
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)
int64_t TSHttpTxnPushedRespBodyBytesGet (TSHttpTxn txnp)
TSReturnCode TSHttpTxnMilestoneGet (TSHttpTxn txnp, TSMilestonesType milestone, ink_hrtime *time)
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 TSHttpConnectWithPluginId (sockaddr const *addr, char const *tag, int64_t id)
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)
TSVConn TSVConnFdCreate (int fd)
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 TSNetConnectTransparent (TSCont contp, sockaddr const *client_addr, sockaddr const *server_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, const char *)
 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, const 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.
TSReturnCode 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 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)
TSReturnCode TSHttpTxnFollowRedirect (TSHttpTxn txnp, int on)
 This API informs the core to try to follow redirections (e.g.
void TSHttpTxnRedirectUrlSet (TSHttpTxn txnp, const char *url, const int url_len)
 This is a generalization of the TSHttpTxnFollowRedirect(), but gives finer control over the behavior.
void TSRedirectUrlSet (TSHttpTxn txnp, const char *url, const int url_len)
const char * TSHttpTxnRedirectUrlGet (TSHttpTxn txnp, int *url_len_ptr)
 Return the current (if set) redirection URL string.
const char * TSRedirectUrlGet (TSHttpTxn txnp, int *url_len_ptr)
int TSHttpTxnRedirectRetries (TSHttpTxn txnp)
 Return the number of redirection retries we have done.
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)
TSFetchSM TSFetchCreate (TSCont contp, const char *method, const char *url, const char *version, struct sockaddr const *client_addr, int flags)
 Extended FetchSM's AIPs.
void TSFetchHeaderAdd (TSFetchSM fetch_sm, const char *name, int name_len, const char *value, int value_len)
void TSFetchWriteData (TSFetchSM fetch_sm, const void *data, size_t len)
ssize_t TSFetchReadData (TSFetchSM fetch_sm, void *buf, size_t len)
void TSFetchLaunch (TSFetchSM fetch_sm)
void TSFetchDestroy (TSFetchSM fetch_sm)
void TSFetchUserDataSet (TSFetchSM fetch_sm, void *data)
void * TSFetchUserDataGet (TSFetchSM fetch_sm)
TSMBuffer TSFetchRespHdrMBufGet (TSFetchSM fetch_sm)
TSMLoc TSFetchRespHdrMLocGet (TSFetchSM fetch_sm)
TSReturnCode TSHttpIsInternalSession (TSHttpSsn ssnp)
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 (int rec_type, TSRecordDumpCb callback, void *edata)
void TSSkipRemappingSet (TSHttpTxn txnp, int flag)
static void * _conf_to_memberp (TSOverridableConfigKey conf, OverridableHttpConfigParams *overridableHttpConfig, 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)
TSReturnCode TSHttpTxnCloseAfterResponse (TSHttpTxn txnp, int should_close)
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.
TSReturnCode TSPluginDescriptorAccept (TSCont contp)
 Attempt to attach the contp continuation to sockets that have already been opened by the traffic manager and defined as belonging to plugins (based on records.config configuration).
int TSHttpTxnBackgroundFillStarted (TSHttpTxn txnp)
int TSHttpTxnIsCacheable (TSHttpTxn txnp, TSMBuffer request, TSMBuffer response)
 Test whether a request / response header pair would be cacheable under the current configuration.
const char * TSHttpServerStateNameLookup (TSServerState state)
 Return a string respresentation for a TSServerState value.
const char * TSHttpHookNameLookup (TSHttpHookID hook)
 Return a string respresentation for a TSHttpHookID value.
const char * TSHttpEventNameLookup (TSEvent event)
 Return a string respresentation for a TSEvent value.

Variables

static volatile int api_rsb_index = 0
static RecRawStatBlockapi_rsb
static 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_STRICT_TRANSPORT_SECURITY
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_STRICT_TRANSPORT_SECURITY
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 const char * TS_HTTP_METHOD_PUSH
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 int TS_HTTP_LEN_PUSH
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
LifecycleAPIHookslifecycle_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")
HttpSessionAcceptplugin_http_accept
HttpSessionAcceptplugin_http_transparent_accept
static ActionSink a
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.

Definition in file InkAPI.cc.


Define Documentation

#define sdk_assert (   EX  )     ( (void)((EX) ? (void)0 : _TSReleaseAssert(#EX, __FILE__, __LINE__)) )

Definition at line 426 of file InkAPI.cc.

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

#define SET_HTTP_HDR (   _HDR,
  _BUF_PTR,
  _OBJ_PTR 
)

Typedef Documentation

typedef const char*(URL::* URLPartGetF)(int *length)

Definition at line 2071 of file InkAPI.cc.

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

Definition at line 2072 of file InkAPI.cc.


Function Documentation

static void* _conf_to_memberp ( TSOverridableConfigKey  conf,
OverridableHttpConfigParams overridableHttpConfig,
OverridableDataType typep 
) [static]

Definition at line 7508 of file InkAPI.cc.

References OverridableHttpConfigParams::accept_encoding_filter_enabled, OverridableHttpConfigParams::anonymize_insert_client_ip, OverridableHttpConfigParams::anonymize_remove_client_ip, OverridableHttpConfigParams::anonymize_remove_cookie, OverridableHttpConfigParams::anonymize_remove_from, OverridableHttpConfigParams::anonymize_remove_referer, OverridableHttpConfigParams::anonymize_remove_user_agent, OverridableHttpConfigParams::background_fill_active_timeout, OverridableHttpConfigParams::background_fill_threshold, OverridableHttpConfigParams::cache_cluster_cache_local, OverridableHttpConfigParams::cache_guaranteed_max_lifetime, OverridableHttpConfigParams::cache_guaranteed_min_lifetime, OverridableHttpConfigParams::cache_heuristic_lm_factor, OverridableHttpConfigParams::cache_heuristic_max_lifetime, OverridableHttpConfigParams::cache_heuristic_min_lifetime, OverridableHttpConfigParams::cache_http, OverridableHttpConfigParams::cache_ignore_auth, OverridableHttpConfigParams::cache_ignore_client_cc_max_age, OverridableHttpConfigParams::cache_ignore_client_no_cache, OverridableHttpConfigParams::cache_ignore_server_no_cache, OverridableHttpConfigParams::cache_ims_on_client_no_cache, OverridableHttpConfigParams::cache_max_stale_age, OverridableHttpConfigParams::cache_open_read_retry_time, OverridableHttpConfigParams::cache_range_lookup, OverridableHttpConfigParams::cache_range_write, OverridableHttpConfigParams::cache_required_headers, OverridableHttpConfigParams::cache_responses_to_cookies, OverridableHttpConfigParams::cache_urls_that_look_dynamic, OverridableHttpConfigParams::cache_when_to_revalidate, OverridableHttpConfigParams::chunking_enabled, OverridableHttpConfigParams::client_abort_threshold, OverridableHttpConfigParams::connect_attempts_max_retries, OverridableHttpConfigParams::connect_attempts_max_retries_dead_server, OverridableHttpConfigParams::connect_attempts_rr_retries, OverridableHttpConfigParams::connect_attempts_timeout, OverridableHttpConfigParams::default_buffer_size_index, OverridableHttpConfigParams::default_buffer_water_mark, OverridableHttpConfigParams::doc_in_cache_skip_dns, OverridableHttpConfigParams::down_server_timeout, OverridableHttpConfigParams::flow_control_enabled, OverridableHttpConfigParams::flow_high_water_mark, OverridableHttpConfigParams::flow_low_water_mark, OverridableHttpConfigParams::freshness_fuzz_min_time, OverridableHttpConfigParams::freshness_fuzz_prob, OverridableHttpConfigParams::freshness_fuzz_time, OverridableHttpConfigParams::fwd_proxy_auth_to_parent, OverridableHttpConfigParams::global_user_agent_header, OverridableHttpConfigParams::http_chunking_size, ink_assert, OverridableHttpConfigParams::insert_age_in_response, OverridableHttpConfigParams::insert_request_via_string, OverridableHttpConfigParams::insert_response_via_string, OverridableHttpConfigParams::insert_squid_x_forwarded_for, OverridableHttpConfigParams::keep_alive_enabled_in, OverridableHttpConfigParams::keep_alive_enabled_out, OverridableHttpConfigParams::keep_alive_no_activity_timeout_in, OverridableHttpConfigParams::keep_alive_no_activity_timeout_out, OverridableHttpConfigParams::keep_alive_post_out, OverridableHttpConfigParams::maintain_pristine_host_hdr, OverridableHttpConfigParams::max_cache_open_read_retries, OverridableHttpConfigParams::negative_caching_enabled, OverridableHttpConfigParams::negative_caching_lifetime, OverridableHttpConfigParams::negative_revalidating_enabled, OverridableHttpConfigParams::negative_revalidating_lifetime, OverridableHttpConfigParams::normalize_ae_gzip, OverridableHttpConfigParams::origin_max_connections, OverridableHttpConfigParams::post_check_content_length_enabled, OverridableHttpConfigParams::post_connect_attempts_timeout, OverridableHttpConfigParams::proxy_response_hsts_include_subdomains, OverridableHttpConfigParams::proxy_response_hsts_max_age, OverridableHttpConfigParams::proxy_response_server_enabled, OverridableHttpConfigParams::proxy_response_server_string, OverridableHttpConfigParams::request_hdr_max_size, OverridableHttpConfigParams::response_hdr_max_size, OverridableHttpConfigParams::send_http11_requests, OverridableHttpConfigParams::server_session_sharing_match, OverridableHttpConfigParams::server_session_sharing_pool, OverridableHttpConfigParams::server_tcp_init_cwnd, OverridableHttpConfigParams::sock_option_flag_out, OverridableHttpConfigParams::sock_packet_mark_out, OverridableHttpConfigParams::sock_packet_tos_out, OverridableHttpConfigParams::sock_recv_buffer_size_out, OverridableHttpConfigParams::sock_send_buffer_size_out, OverridableHttpConfigParams::transaction_active_timeout_out, OverridableHttpConfigParams::transaction_no_activity_timeout_in, OverridableHttpConfigParams::transaction_no_activity_timeout_out, TS_CONFIG_HTTP_ACCEPT_ENCODING_FILTER_ENABLED, TS_CONFIG_HTTP_ANONYMIZE_INSERT_CLIENT_IP, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_CLIENT_IP, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_COOKIE, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_FROM, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_REFERER, TS_CONFIG_HTTP_ANONYMIZE_REMOVE_USER_AGENT, TS_CONFIG_HTTP_BACKGROUND_FILL_ACTIVE_TIMEOUT, TS_CONFIG_HTTP_BACKGROUND_FILL_COMPLETED_THRESHOLD, TS_CONFIG_HTTP_CACHE_CACHE_RESPONSES_TO_COOKIES, TS_CONFIG_HTTP_CACHE_CACHE_URLS_THAT_LOOK_DYNAMIC, TS_CONFIG_HTTP_CACHE_CLUSTER_CACHE_LOCAL, TS_CONFIG_HTTP_CACHE_FUZZ_MIN_TIME, TS_CONFIG_HTTP_CACHE_FUZZ_PROBABILITY, TS_CONFIG_HTTP_CACHE_FUZZ_TIME, TS_CONFIG_HTTP_CACHE_GUARANTEED_MAX_LIFETIME, TS_CONFIG_HTTP_CACHE_GUARANTEED_MIN_LIFETIME, TS_CONFIG_HTTP_CACHE_HEURISTIC_LM_FACTOR, TS_CONFIG_HTTP_CACHE_HEURISTIC_MAX_LIFETIME, TS_CONFIG_HTTP_CACHE_HEURISTIC_MIN_LIFETIME, TS_CONFIG_HTTP_CACHE_HTTP, TS_CONFIG_HTTP_CACHE_IGNORE_AUTHENTICATION, TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_CC_MAX_AGE, TS_CONFIG_HTTP_CACHE_IGNORE_CLIENT_NO_CACHE, TS_CONFIG_HTTP_CACHE_IGNORE_SERVER_NO_CACHE, TS_CONFIG_HTTP_CACHE_IMS_ON_CLIENT_NO_CACHE, TS_CONFIG_HTTP_CACHE_MAX_OPEN_READ_RETRIES, TS_CONFIG_HTTP_CACHE_MAX_STALE_AGE, TS_CONFIG_HTTP_CACHE_OPEN_READ_RETRY_TIME, TS_CONFIG_HTTP_CACHE_RANGE_LOOKUP, TS_CONFIG_HTTP_CACHE_RANGE_WRITE, TS_CONFIG_HTTP_CACHE_REQUIRED_HEADERS, TS_CONFIG_HTTP_CACHE_WHEN_TO_REVALIDATE, TS_CONFIG_HTTP_CHUNKING_ENABLED, TS_CONFIG_HTTP_CHUNKING_SIZE, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_MAX_RETRIES_DEAD_SERVER, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_RR_RETRIES, TS_CONFIG_HTTP_CONNECT_ATTEMPTS_TIMEOUT, TS_CONFIG_HTTP_DEFAULT_BUFFER_SIZE, TS_CONFIG_HTTP_DEFAULT_BUFFER_WATER_MARK, TS_CONFIG_HTTP_DOC_IN_CACHE_SKIP_DNS, TS_CONFIG_HTTP_DOWN_SERVER_ABORT_THRESHOLD, TS_CONFIG_HTTP_DOWN_SERVER_CACHE_TIME, TS_CONFIG_HTTP_FLOW_CONTROL_ENABLED, TS_CONFIG_HTTP_FLOW_CONTROL_HIGH_WATER_MARK, TS_CONFIG_HTTP_FLOW_CONTROL_LOW_WATER_MARK, TS_CONFIG_HTTP_FORWARD_PROXY_AUTH_TO_PARENT, TS_CONFIG_HTTP_GLOBAL_USER_AGENT_HEADER, TS_CONFIG_HTTP_INSERT_AGE_IN_RESPONSE, TS_CONFIG_HTTP_INSERT_REQUEST_VIA_STR, TS_CONFIG_HTTP_INSERT_RESPONSE_VIA_STR, TS_CONFIG_HTTP_INSERT_SQUID_X_FORWARDED_FOR, TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_IN, TS_CONFIG_HTTP_KEEP_ALIVE_ENABLED_OUT, TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_IN, TS_CONFIG_HTTP_KEEP_ALIVE_NO_ACTIVITY_TIMEOUT_OUT, TS_CONFIG_HTTP_KEEP_ALIVE_POST_OUT, TS_CONFIG_HTTP_NEGATIVE_CACHING_ENABLED, TS_CONFIG_HTTP_NEGATIVE_CACHING_LIFETIME, TS_CONFIG_HTTP_NEGATIVE_REVALIDATING_ENABLED, TS_CONFIG_HTTP_NEGATIVE_REVALIDATING_LIFETIME, TS_CONFIG_HTTP_NORMALIZE_AE_GZIP, TS_CONFIG_HTTP_ORIGIN_MAX_CONNECTIONS, TS_CONFIG_HTTP_POST_CHECK_CONTENT_LENGTH_ENABLED, TS_CONFIG_HTTP_POST_CONNECT_ATTEMPTS_TIMEOUT, TS_CONFIG_HTTP_REQUEST_HEADER_MAX_SIZE, TS_CONFIG_HTTP_RESPONSE_HEADER_MAX_SIZE, TS_CONFIG_HTTP_RESPONSE_SERVER_ENABLED, TS_CONFIG_HTTP_RESPONSE_SERVER_STR, TS_CONFIG_HTTP_SEND_HTTP11_REQUESTS, TS_CONFIG_HTTP_SERVER_SESSION_SHARING_MATCH, TS_CONFIG_HTTP_SERVER_SESSION_SHARING_POOL, TS_CONFIG_HTTP_SERVER_TCP_INIT_CWND, TS_CONFIG_HTTP_SHARE_SERVER_SESSIONS, TS_CONFIG_HTTP_TRANSACTION_ACTIVE_TIMEOUT_OUT, TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_IN, TS_CONFIG_HTTP_TRANSACTION_NO_ACTIVITY_TIMEOUT_OUT, TS_CONFIG_LAST_ENTRY, TS_CONFIG_NET_SOCK_OPTION_FLAG_OUT, TS_CONFIG_NET_SOCK_PACKET_MARK_OUT, TS_CONFIG_NET_SOCK_PACKET_TOS_OUT, TS_CONFIG_NET_SOCK_RECV_BUFFER_SIZE_OUT, TS_CONFIG_NET_SOCK_SEND_BUFFER_SIZE_OUT, TS_CONFIG_NULL, TS_CONFIG_SSL_HSTS_INCLUDE_SUBDOMAINS, TS_CONFIG_SSL_HSTS_MAX_AGE, and TS_CONFIG_URL_REMAP_PRISTINE_HOST_HDR.

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

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

Definition at line 416 of file InkAPI.cc.

void _TSfree ( void *  ptr  ) 

Definition at line 1656 of file InkAPI.cc.

References ats_free().

void* _TSmalloc ( size_t  size,
const char *   
)

Definition at line 1625 of file InkAPI.cc.

References ats_malloc().

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

Definition at line 1631 of file InkAPI.cc.

References ats_realloc().

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

Definition at line 402 of file InkAPI.cc.

References _ink_assert().

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

Definition at line 1638 of file InkAPI.cc.

References _xstrdup().

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

Definition at line 1650 of file InkAPI.cc.

References ink_strlcat().

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

Definition at line 1644 of file InkAPI.cc.

References ink_strlcpy().

void api_init (  ) 

Definition at line 1334 of file InkAPI.cc.

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

Referenced by plugin_init().

TSReturnCode ink_sanity_check_stat_structure ( void *  obj  )  [inline]

Definition at line 6738 of file InkAPI.cc.

bool isWriteable ( TSMBuffer  bufp  ) 
static MIMEFieldSDKHandle* sdk_alloc_field_handle ( TSMBuffer  ,
MIMEHdrImpl mh 
) [static]
static void sdk_free_field_handle ( TSMBuffer  bufp,
MIMEFieldSDKHandle field_handle 
) [static]

Definition at line 687 of file InkAPI.cc.

References mHandleAllocator, sdk_sanity_check_mbuffer(), and TS_SUCCESS.

Referenced by TSHandleMLocRelease().

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_fetch_sm ( TSFetchSM  fetch_sm  ) 
TSReturnCode sdk_sanity_check_field_handle ( TSMLoc  field,
TSMLoc  parent_hdr = NULL 
)
TSReturnCode sdk_sanity_check_hook_id ( TSHttpHookID  id  ) 

Definition at line 631 of file InkAPI.cc.

References TS_HTTP_LAST_HOOK.

Referenced by TSHttpHookAdd(), TSHttpSsnHookAdd(), and TSHttpTxnHookAdd().

TSReturnCode sdk_sanity_check_http_hdr_handle ( TSMLoc  field  ) 

Definition at line 559 of file InkAPI.cc.

References HDR_HEAP_OBJ_HTTP_HEADER, HdrHeapObjImpl::m_type, and TS_NULL_MLOC.

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

TSReturnCode sdk_sanity_check_http_parser ( TSHttpParser  parser  ) 

Definition at line 615 of file InkAPI.cc.

Referenced by TSHttpParserClear(), and TSHttpParserDestroy().

TSReturnCode sdk_sanity_check_http_ssn ( TSHttpSsn  ssnp  ) 
TSReturnCode sdk_sanity_check_lifecycle_hook_id ( TSLifecycleHookID  id  ) 

Definition at line 639 of file InkAPI.cc.

References TS_LIFECYCLE_LAST_HOOK.

Referenced by TSLifecycleHookAdd().

TSReturnCode sdk_sanity_check_mbuffer ( TSMBuffer  bufp  ) 

Definition at line 523 of file InkAPI.cc.

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

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

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

Definition at line 607 of file InkAPI.cc.

Referenced by TSMimeParserClear(), and TSMimeParserDestroy().

TSReturnCode sdk_sanity_check_null_ptr ( void *  ptr  ) 

Definition at line 647 of file InkAPI.cc.

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

TSReturnCode sdk_sanity_check_txn ( TSHttpTxn  txnp  ) 

Definition at line 599 of file InkAPI.cc.

References HTTP_SM_MAGIC_ALIVE.

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

TSReturnCode sdk_sanity_check_url_handle ( TSMLoc  field  ) 
bool ssl_register_protocol ( const char *  ,
Continuation  
)

Definition at line 49 of file HttpProxyServerMain.cc.

References SLL< C, L >::head, SLL< C, L >::next(), and ssl_plugin_mutex.

bool ssl_unregister_protocol ( const char *  ,
Continuation  
)

Definition at line 64 of file HttpProxyServerMain.cc.

References SLL< C, L >::head, SLL< C, L >::next(), and ssl_plugin_mutex.

void ts_session_protocol_well_known_name_indices_init (  ) 
void TSActionCancel ( TSAction  actionp  ) 
int TSActionDone ( TSAction  actionp  ) 

Definition at line 6141 of file InkAPI.cc.

References ACTION_RESULT_DONE.

Referenced by SDK_API_TSActionCancel(), synclient_txn_delete(), and synserver_stop().

char* TSAIOBufGet ( TSAIOCallback  data  ) 

Async disk IO buffer get.

Returns:
char* to the buffer

Definition at line 7437 of file InkAPI.cc.

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

int TSAIONBytesGet ( TSAIOCallback  data  ) 

Async disk IO get number of bytes.

Returns:
the number of bytes

Definition at line 7444 of file InkAPI.cc.

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.

Definition at line 7475 of file InkAPI.cc.

References ink_aio_thread_num_set(), and TS_SUCCESS.

TSReturnCode TSAIOWrite ( int  fd,
off_t  offset,
char *  buf,
size_t  bufSize,
TSCont  contp 
)

Async disk IO write.

Returns:
TS_SUCCESS or TS_ERROR.

Definition at line 7451 of file InkAPI.cc.

References ink_aio_write(), Continuation::mutex, new_AIOCallback(), sdk_assert, sdk_sanity_check_iocore_structure(), sdk_sanity_check_null_ptr(), and TS_SUCCESS.

TSReturnCode TSBase64Decode ( const char *  str,
size_t  str_len,
unsigned char *  dst,
size_t  dst_size,
size_t *  length 
)

Definition at line 1667 of file InkAPI.cc.

References ats_base64_decode(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.

Referenced by SDK_API_ENCODING().

TSReturnCode TSBase64Encode ( const char *  str,
size_t  str_len,
char *  dst,
size_t  dst_size,
size_t *  length 
)

Definition at line 1676 of file InkAPI.cc.

References ats_base64_encode(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.

Referenced by SDK_API_ENCODING().

TSReturnCode TSCacheDataTypeReady ( TSCacheDataType  type,
int *  is_ready 
)
TSCacheHttpInfo TSCacheHttpInfoCopy ( TSCacheHttpInfo  infop  ) 

Definition at line 4004 of file InkAPI.cc.

TSCacheHttpInfo TSCacheHttpInfoCreate ( void   ) 

Definition at line 4103 of file InkAPI.cc.

void TSCacheHttpInfoDestroy ( TSCacheHttpInfo  infop  ) 

Definition at line 4097 of file InkAPI.cc.

void TSCacheHttpInfoKeySet ( TSCacheHttpInfo  infop,
TSCacheKey  keyp 
)

Definition at line 7115 of file InkAPI.cc.

void TSCacheHttpInfoReqGet ( TSCacheHttpInfo  infop,
TSMBuffer bufp,
TSMLoc obj 
)

Definition at line 4013 of file InkAPI.cc.

References sdk_sanity_check_mbuffer().

time_t TSCacheHttpInfoReqSentTimeGet ( TSCacheHttpInfo  infop  ) 

Definition at line 4034 of file InkAPI.cc.

void TSCacheHttpInfoReqSet ( TSCacheHttpInfo  infop,
TSMBuffer  bufp,
TSMLoc  obj 
)

Definition at line 4055 of file InkAPI.cc.

References SET_HTTP_HDR.

void TSCacheHttpInfoRespGet ( TSCacheHttpInfo  infop,
TSMBuffer bufp,
TSMLoc obj 
)

Definition at line 4024 of file InkAPI.cc.

References sdk_sanity_check_mbuffer().

time_t TSCacheHttpInfoRespReceivedTimeGet ( TSCacheHttpInfo  infop  ) 

Definition at line 4041 of file InkAPI.cc.

void TSCacheHttpInfoRespSet ( TSCacheHttpInfo  infop,
TSMBuffer  bufp,
TSMLoc  obj 
)

Definition at line 4067 of file InkAPI.cc.

References SET_HTTP_HDR.

int64_t TSCacheHttpInfoSizeGet ( TSCacheHttpInfo  infop  ) 

Definition at line 4048 of file InkAPI.cc.

void TSCacheHttpInfoSizeSet ( TSCacheHttpInfo  infop,
int64_t  size 
)

Definition at line 7125 of file InkAPI.cc.

int TSCacheHttpInfoVector ( TSCacheHttpInfo  infop,
void *  data,
int  length 
)
TSCacheKey TSCacheKeyCreate ( void   ) 

Creates (allocates memory for) a new cache key.

Definition at line 3896 of file InkAPI.cc.

References 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:
key to be destroyed.

Definition at line 3988 of file InkAPI.cc.

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

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:
key to be associated with the cached object. Before calling TSCacheKeySetDigest() you must create the key with TSCacheKeyCreate().
input string that uniquely identifies the object. In most cases, it is the URL of the object.
length of the string input.

Definition at line 3906 of file InkAPI.cc.

References CACHE_INFO_MAGIC_ALIVE, CacheInfo::cache_key, CacheInfo::magic, sdk_assert, sdk_sanity_check_cachekey(), sdk_sanity_check_iocore_structure(), and TS_SUCCESS.

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:
key of the cached object.
hostname to associate with the cache key.
host_len length of the string hostname.

Definition at line 3956 of file InkAPI.cc.

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

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:
contp continuation to be called back if a read operation is permissible.
key cache key corresponding to the object to be read.
Returns:
something allowing the user to cancel or schedule the cache read.

Definition at line 6590 of file InkAPI.cc.

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

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:
contp continuation that the cache calls back reporting the success or failure of the remove.
key cache key corresponding to the object to be removed.
Returns:
something allowing the user to cancel or schedule the remove.

Definition at line 6619 of file InkAPI.cc.

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

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:
contp continuation that the cache calls back (telling it whether the write operation can proceed or not).
key cache key corresponding to the object to be cached.
Returns:
something allowing the user to cancel or schedule the cache write.

Definition at line 6604 of file InkAPI.cc.

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

Referenced by SDK_API_TSCache().

void* TSConfigDataGet ( TSConfig  configp  ) 

Definition at line 4140 of file InkAPI.cc.

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.

Definition at line 1721 of file InkAPI.cc.

References Layout::get(), and Layout::sysconfdir.

Referenced by SDK_API_TSfopen().

TSConfig TSConfigGet ( unsigned int  id  ) 

Definition at line 4128 of file InkAPI.cc.

Referenced by SDK_API_TSConfig().

void TSConfigRelease ( unsigned int  id,
TSConfig  configp 
)

Definition at line 4134 of file InkAPI.cc.

Referenced by SDK_API_TSConfig().

unsigned int TSConfigSet ( unsigned int  id,
void *  data,
TSConfigDestroyFunc  funcp 
)

Definition at line 4119 of file InkAPI.cc.

References INKConfigImpl::m_destroy_func, and INKConfigImpl::mdata.

Referenced by SDK_API_TSConfig().

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,
  ... 
)

Definition at line 6769 of file InkAPI.cc.

References diags, DiagsTagType_Debug, DL_Diag, Diags::on(), and Diags::print_va().

void TSDebugSpecific ( int  debug_flag,
const char *  tag,
const char *  format_str,
  ... 
)

Definition at line 6755 of file InkAPI.cc.

References diags, DiagsTagType_Debug, DL_Diag, Diags::on(), and Diags::print_va().

double TSdrandom ( void   ) 

Definition at line 1697 of file InkAPI.cc.

References InkRand::drandom(), EThread::generator, and this_ethread().

void TSError ( const char *  fmt,
  ... 
)

Definition at line 386 of file InkAPI.cc.

References diags, DL_Error, is_action_tag_set, Diags::print_va(), and Log::va_error().

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:
filep file to be closed.

Definition at line 1811 of file InkAPI.cc.

References FileImpl::fclose().

Referenced by log_test_handler(), and SDK_API_TSfopen().

TSFetchSM TSFetchCreate ( TSCont  contp,
const char *  method,
const char *  url,
const char *  version,
struct sockaddr const *  client_addr,
int  flags 
)

Extended FetchSM's AIPs.

Definition at line 7279 of file InkAPI.cc.

References ClassAllocator< C >::alloc(), ats_is_ip(), FetchSM::ext_init(), sdk_assert, sdk_sanity_check_continuation(), and TS_SUCCESS.

Referenced by spdy_fetcher_launch().

void TSFetchDestroy ( TSFetchSM  fetch_sm  ) 

Definition at line 7329 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.

Referenced by SpdyRequest::clear().

void TSFetchHeaderAdd ( TSFetchSM  fetch_sm,
const char *  name,
int  name_len,
const char *  value,
int  value_len 
)

Definition at line 7295 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.

Referenced by spdy_fetcher_launch().

void TSFetchLaunch ( TSFetchSM  fetch_sm  ) 

Definition at line 7321 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.

Referenced by spdy_fetcher_launch().

TSReturnCode TSFetchPageRespGet ( TSHttpTxn  txnp,
TSMBuffer bufp,
TSMLoc obj 
)
void TSFetchPages ( TSFetchUrlParams_t params  ) 
ssize_t TSFetchReadData ( TSFetchSM  fetch_sm,
void *  buf,
size_t  len 
)

Definition at line 7313 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.

Referenced by spdy_read_fetch_body_callback().

char* TSFetchRespGet ( TSHttpTxn  txnp,
int *  length 
)

Definition at line 7223 of file InkAPI.cc.

References FetchSM::resp_get(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.

TSMBuffer TSFetchRespHdrMBufGet ( TSFetchSM  fetch_sm  ) 

Definition at line 7371 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.

Referenced by SpdyNV::SpdyNV().

TSMLoc TSFetchRespHdrMLocGet ( TSFetchSM  fetch_sm  ) 

Definition at line 7379 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.

Referenced by SpdyNV::SpdyNV().

void TSFetchUrl ( const char *  headers,
int  request_len,
sockaddr const *  ip,
TSCont  contp,
TSFetchWakeUpOptions  callback_options,
TSFetchEvent  events 
)
void* TSFetchUserDataGet ( TSFetchSM  fetch_sm  ) 
void TSFetchUserDataSet ( TSFetchSM  fetch_sm,
void *  data 
)

Definition at line 7337 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.

Referenced by spdy_fetcher_launch().

void TSFetchWriteData ( TSFetchSM  fetch_sm,
const void *  data,
size_t  len 
)

Definition at line 7305 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.

Referenced by spdy_on_data_chunk_recv_callback().

void TSfflush ( TSFile  filep  ) 

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

Parameters:
filep file to flush.

Definition at line 1833 of file InkAPI.cc.

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:
filep file to read from.
buf buffer to read into.
length size of the buffer to read into.
Returns:
pointer to the string read into the buffer buf.

Definition at line 1840 of file InkAPI.cc.

References FileImpl::fgets().

Referenced by log_test_handler(), and SDK_API_TSfopen().

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:
filename file to be opened.
mode specifies 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.

Definition at line 1797 of file InkAPI.cc.

References FileImpl::fopen().

Referenced by log_test_handler(), and SDK_API_TSfopen().

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:
filep name of the file to read from.
buf buffer to read into.
length amount 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.

Definition at line 1819 of file InkAPI.cc.

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:
filep file to write into.
buf buffer containing the data to be written.
length amount 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.

Definition at line 1826 of file InkAPI.cc.

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:
bufp marshal buffer containing the TSMLoc handle to be released.
parent location of the parent object from which the handle was created.
mloc location of the handle to be released.

Definition at line 1853 of file InkAPI.cc.

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

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

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 
)

Definition at line 6035 of file InkAPI.cc.

References HttpAltInfo::m_qvalue, sdk_assert, sdk_sanity_check_alt_info(), and TS_SUCCESS.

Referenced by altinfo_hook_handler().

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  ) 

Definition at line 6079 of file InkAPI.cc.

References TSHttpConnectWithPluginId().

TSVConn TSHttpConnectTransparent ( sockaddr const *  client_addr,
sockaddr const *  server_addr 
)
TSVConn TSHttpConnectWithPluginId ( sockaddr const *  addr,
char const *  tag,
int64_t  id 
)
int TSHttpCurrentActiveClientConnectionsGet ( void   ) 

Definition at line 5952 of file InkAPI.cc.

References http_current_active_client_connections_stat, and HTTP_READ_DYN_SUM.

int TSHttpCurrentCacheConnectionsGet ( void   ) 

Definition at line 5976 of file InkAPI.cc.

References http_current_cache_connections_stat, and HTTP_READ_DYN_SUM.

int TSHttpCurrentClientConnectionsGet ( void   ) 

Definition at line 5943 of file InkAPI.cc.

References http_current_client_connections_stat, and HTTP_READ_DYN_SUM.

int TSHttpCurrentIdleClientConnectionsGet ( void   ) 
int TSHttpCurrentServerConnectionsGet ( void   ) 

Definition at line 5985 of file InkAPI.cc.

References http_current_server_connections_stat, and HTTP_READ_GLOBAL_DYN_SUM.

const char* TSHttpEventNameLookup ( TSEvent  event  ) 

Return a string respresentation for a TSEvent value.

This is useful for plugin debugging.

Parameters:
event the value of this TSHttpHookID
Returns:
the string representation of the event

Definition at line 8623 of file InkAPI.cc.

References HttpDebugNames::get_event_name().

Referenced by SDK_API_DEBUG_NAME_LOOKUPS().

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_bufp marshal buffer to contain the copied header.
dest_offset location of the copied header.
src_bufp marshal buffer containing the source header.
src_offset location of the source header.

Definition at line 3515 of file InkAPI.cc.

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

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().

Definition at line 3472 of file InkAPI.cc.

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

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:
parser parses the HTTP header.
bufp marshal buffer containing the HTTP header to be parsed.
offset location of the HTTP header within bufp.
start both 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.
end points 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).

Definition at line 3583 of file InkAPI.cc.

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

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  ) 

Definition at line 3874 of file InkAPI.cc.

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 
)
const char* TSHttpHookNameLookup ( TSHttpHookID  hook  ) 

Return a string respresentation for a TSHttpHookID value.

This is useful for plugin debugging.

Parameters:
hook the value of this TSHttpHookID
Returns:
the string representation of the hook ID

Definition at line 8617 of file InkAPI.cc.

References HttpDebugNames::get_api_hook_name().

Referenced by SDK_API_DEBUG_NAME_LOOKUPS().

void TSHttpIcpDynamicSet ( int  value  ) 

Definition at line 4397 of file InkAPI.cc.

References icp_dynamic_enabled.

TSReturnCode TSHttpIsInternalRequest ( TSHttpTxn  txnp  ) 
TSReturnCode TSHttpIsInternalSession ( TSHttpSsn  ssnp  ) 
void TSHttpParserClear ( TSHttpParser  parser  ) 
TSHttpParser TSHttpParserCreate ( void   ) 

Definition at line 3432 of file InkAPI.cc.

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 
)
const char* TSHttpServerStateNameLookup ( TSServerState  state  ) 

Return a string respresentation for a TSServerState value.

This is useful for plugin debugging.

Parameters:
state the value of this TSServerState
Returns:
the string representation of the state

Definition at line 8611 of file InkAPI.cc.

References HttpDebugNames::get_server_state_name().

Referenced by SDK_API_DEBUG_NAME_LOOKUPS().

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  ) 

Definition at line 5743 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_http_ssn(), and TS_SUCCESS.

void TSHttpSsnDebugSet ( TSHttpSsn  ssnp,
int  on 
)

Set the session specific debugging flag for this client session.

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

Parameters:
ssnp Client session to change.
on set to 1 to turn on, 0 to turn off.

Definition at line 5736 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_http_ssn(), and TS_SUCCESS.

void TSHttpSsnHookAdd ( TSHttpSsn  ssnp,
TSHttpHookID  id,
TSCont  contp 
)
sockaddr const* TSHttpSsnIncomingAddrGet ( TSHttpSsn  ssnp  )  [read]
void TSHttpSsnReenable ( TSHttpSsn  ssnp,
TSEvent  event 
)
void* TSHttpSsnSSLConnectionGet ( TSHttpSsn  ssnp  ) 

Get SSL object of this session.

Retrieves the SSL object of the SSL connection.

Returns:
SSL object of this session

Definition at line 5173 of file InkAPI.cc.

References HttpClientSession::get_netvc(), sdk_assert, sdk_sanity_check_null_ptr(), SSLNetVConnection::ssl, and TS_SUCCESS.

int TSHttpSsnTransactionCount ( TSHttpSsn  ssnp  ) 
TSReturnCode TSHttpTxnAborted ( TSHttpTxn  txnp  ) 

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

)

Returns:
1 if transaction was aborted

Definition at line 5074 of file InkAPI.cc.

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

void TSHttpTxnActiveTimeoutSet ( TSHttpTxn  txnp,
int  timeout 
)

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

Definition at line 4978 of file InkAPI.cc.

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

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 TSHttpTxnCacheLookupCountGet ( TSHttpTxn  txnp,
int *  lookup_count 
)
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 appropriate 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.

Definition at line 5203 of file InkAPI.cc.

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

Referenced by checkHttpTxnClientAddrGet(), and checkHttpTxnClientIPGet().

TSReturnCode TSHttpTxnClientFdGet ( TSHttpTxn  txnp,
int *  fdp 
)
void TSHttpTxnClientIncomingPortSet ( TSHttpTxn  txnp,
int  port 
)
void TSHttpTxnClientKeepaliveSet ( TSHttpTxn  txnp,
int  set 
)

Definition at line 4519 of file InkAPI.cc.

References HttpTransact::State::hdr_info, and HttpSM::t_state.

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

Definition at line 5322 of file InkAPI.cc.

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

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

Definition at line 5364 of file InkAPI.cc.

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

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 TSHttpTxnCloseAfterResponse ( TSHttpTxn  txnp,
int  should_close 
)
TSReturnCode TSHttpTxnCntl ( TSHttpTxn  txnp,
TSHttpCntlType  cntl,
void *  data 
)
TSReturnCode TSHttpTxnConfigFind ( const char *  name,
int  length,
TSOverridableConfigKey conf,
TSRecordDataType type 
)
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

Definition at line 4991 of file InkAPI.cc.

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

int TSHttpTxnDebugGet ( TSHttpTxn  txnp  ) 

Returns the transaction specific debugging flag for this transaction.

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

Definition at line 5729 of file InkAPI.cc.

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 messages related to this transaction will be written even if the debug tag isn't on.

Parameters:
txnp transaction to change.
on set to 1 to turn on, 0 to turn off.

Definition at line 5722 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_txn(), and TS_SUCCESS.

void TSHttpTxnDNSTimeoutSet ( TSHttpTxn  txnp,
int  timeout 
)

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

Definition at line 5004 of file InkAPI.cc.

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

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:
length String length return, may be NULL.

Definition at line 4571 of file InkAPI.cc.

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

void TSHttpTxnErrorBodySet ( TSHttpTxn  txnp,
char *  buf,
size_t  buflength,
char *  mimetype 
)

Sets an error type body to a transaction.

Note that both string arguments must be allocated with TSmalloc() or TSstrdup(). The mimetype argument is optional, if not provided it defaults to "text/html". Sending an emptry string would prevent setting a content type header (but that is not adviced).

Parameters:
txnp HTTP transaction whose parent proxy to get.
buf The body message (must be heap allocated).
buflength Length of the body message.
mimetype The MIME type to set the response to (can be NULL, but must be heap allocated if non-NULL).

Definition at line 5407 of file InkAPI.cc.

References ats_free(), HttpTransact::State::free_internal_msg_buffer(), HttpTransact::State::internal_msg_buffer, HttpTransact::State::internal_msg_buffer_fast_allocator_size, HttpTransact::State::internal_msg_buffer_size, HttpTransact::State::internal_msg_buffer_type, sdk_assert, sdk_sanity_check_txn(), HttpSM::t_state, and TS_SUCCESS.

Referenced by ssn_handler().

TSReturnCode TSHttpTxnFollowRedirect ( TSHttpTxn  txnp,
int  on 
)

This API informs the core to try to follow redirections (e.g.

301 responses. The new URL would be provided in the standard Location header.

Parameters:
txnp the transaction pointer
on turn this on or off (0 or 1)
Returns:
TS_SUCCESS if it succeeded

Definition at line 7137 of file InkAPI.cc.

References HttpSM::enable_redirection, sdk_assert, sdk_sanity_check_txn(), and TS_SUCCESS.

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.

Definition at line 5224 of file InkAPI.cc.

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

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:
contp continuation called to handle the interception.
txnp transaction to be intercepted.

Definition at line 6379 of file InkAPI.cc.

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

Referenced by cont_test_handler().

int TSHttpTxnIsCacheable ( TSHttpTxn  txnp,
TSMBuffer  request,
TSMBuffer  response 
)

Test whether a request / response header pair would be cacheable under the current configuration.

This would typically be used in TS_HTTP_READ_RESPONSE_HDR_HOOK, when you have both the client request and server response ready.

Parameters:
txnp the transaction pointer
request the client request header. If NULL, use the transactions client request.
response the server response header. If NULL, use the transactions origin response.
Returns:
1 if the request / response is cacheable, 0 otherwise

Definition at line 8583 of file InkAPI.cc.

References HttpTransact::State::hdr_info, HttpTransact::is_response_cacheable(), sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_txn(), HttpSM::t_state, TS_SUCCESS, and HTTPHdr::valid().

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

Definition at line 5842 of file InkAPI.cc.

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

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.

Definition at line 5288 of file InkAPI.cc.

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

Referenced by checkHttpTxnNextHopIPGet().

void TSHttpTxnNoActivityTimeoutSet ( TSHttpTxn  txnp,
int  timeout 
)

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

Definition at line 5019 of file InkAPI.cc.

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

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:
txnp HTTP transaction whose parent proxy to get.
hostname of the parent proxy.
port parent proxy's port.

Definition at line 5449 of file InkAPI.cc.

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

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:
txnp HTTP transaction whose parent proxy to set.
hostname parent proxy host name string.
port parent proxy port to set.

Definition at line 5462 of file InkAPI.cc.

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

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  ) 
TSReturnCode TSHttpTxnRedirectRequest ( TSHttpTxn  txnp,
TSMBuffer  bufp,
TSMLoc  url_loc 
)
int TSHttpTxnRedirectRetries ( TSHttpTxn  txnp  ) 

Return the number of redirection retries we have done.

This starts off at zero, and can be used to select different URLs based on which attempt this is. This can be useful for example when providing a list of URLs to try, and do so in order until one succeeds.

Parameters:
txnp the transaction pointer
Returns:
the redirect try count

Definition at line 7213 of file InkAPI.cc.

References HttpSM::redirection_tries, sdk_assert, sdk_sanity_check_txn(), and TS_SUCCESS.

const char* TSHttpTxnRedirectUrlGet ( TSHttpTxn  txnp,
int *  url_len_ptr 
)

Return the current (if set) redirection URL string.

This is still owned by the core, and must not be free'd.

Parameters:
txnp the transaction pointer
url_len_ptr a pointer to where the URL length is to be stored
Returns:
the url string

Definition at line 7195 of file InkAPI.cc.

References HttpSM::redirect_url, HttpSM::redirect_url_len, sdk_assert, sdk_sanity_check_txn(), and TS_SUCCESS.

Referenced by TSRedirectUrlGet().

void TSHttpTxnRedirectUrlSet ( TSHttpTxn  txnp,
const char *  url,
const int  url_len 
)

This is a generalization of the TSHttpTxnFollowRedirect(), but gives finer control over the behavior.

Instead of using the Location: header for the new destination, this API takes the new URL as a parameter. Calling this API transfers the ownership of the URL from the plugin to the core, so you must make sure it is heap allocated, and that you do not free it.

Calling this API implicitly also enables the "Follow Redirect" feature, so there is no rason to call TSHttpTxnFollowRedirect() as well.

Parameters:
txnp the transaction pointer
url a heap allocated string with the URL
url_len the length of the URL

Definition at line 7149 of file InkAPI.cc.

References ats_free(), HttpSM::enable_redirection, HttpSM::redirect_url, HttpSM::redirect_url_len, sdk_assert, sdk_sanity_check_null_ptr(), sdk_sanity_check_txn(), and TS_SUCCESS.

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:
txnp transaction to be reenabled.
event tells 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.

Definition at line 5517 of file InkAPI.cc.

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

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

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.

Definition at line 5233 of file InkAPI.cc.

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

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:
addr Address for origin server.

Definition at line 5242 of file InkAPI.cc.

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

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 response 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:
contp continuation called to handle the interception
txnp transaction to be intercepted.

Definition at line 6362 of file InkAPI.cc.

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

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

Definition at line 5341 of file InkAPI.cc.

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

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

Definition at line 5383 of file InkAPI.cc.

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

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 TSHttpTxnServerRespNoStoreSet ( TSHttpTxn  txnp,
int  flag 
)

Set flag indicating whether or not to cache the server response for given TSHttpTxn.

Note:
This should be done in the HTTP_READ_RESPONSE_HDR_HOOK or earlier.
If TSHttpTxnRespCacheableSet() is not working the way you expect, this may be the function you should use instead.
Parameters:
txnp The transaction whose server response you do not want to store.
flag Set 0 to allow storing and 1 to disable storing.
Returns:
TS_SUCCESS.

Definition at line 5028 of file InkAPI.cc.

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

TSServerState TSHttpTxnServerStateGet ( TSHttpTxn  txnp  ) 
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  ) 

Definition at line 7020 of file InkAPI.cc.

References pluginFreshnessCalcFunc.

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.

Definition at line 1715 of file InkAPI.cc.

References Layout::get(), and Layout::prefix.

Referenced by SDK_API_TSfopen(), and SDK_API_TSPluginDirGet().

int TSIsDebugTagSet ( const char *  t  ) 

Definition at line 6749 of file InkAPI.cc.

References diags, DiagsTagType_Debug, and Diags::on().

void TSLifecycleHookAdd ( TSLifecycleHookID  id,
TSCont  contp 
)
char* TSMatcherExtractIPRange ( char *  match_str,
sockaddr *  addr1,
sockaddr *  addr2 
)

Definition at line 6954 of file InkAPI.cc.

References ExtractIpRange(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.

char* TSMatcherExtractIPRange ( char *  match_str,
uint32_t *  addr1,
uint32_t *  addr2 
)

Definition at line 6947 of file InkAPI.cc.

References ExtractIpRange(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.

TSMatcherLine TSMatcherLineCreate ( void   ) 

Definition at line 6961 of file InkAPI.cc.

References ats_malloc().

void TSMatcherLineDestroy ( TSMatcherLine  ml  ) 

Definition at line 6967 of file InkAPI.cc.

References ats_free(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.

char* TSMatcherLineName ( TSMatcherLine  ml,
int  element 
)

Definition at line 6981 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.

char* TSMatcherLineValue ( TSMatcherLine  ml,
int  element 
)

Definition at line 6988 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.

const char* TSMatcherParseSrcIPConfigLine ( char *  line,
TSMatcherLine  ml 
)
char* TSMatcherReadIntoBuffer ( char *  file_name,
int *  file_len 
)

Definition at line 6933 of file InkAPI.cc.

References readIntoBuffer(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.

char* TSMatcherTokLine ( char *  buffer,
char **  last 
)

Definition at line 6940 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_null_ptr(), tokLine(), and TS_SUCCESS.

TSMBuffer TSMBufferCreate ( void   ) 

Creates a new marshal buffer and initializes the reference count to 1.

Definition at line 1893 of file InkAPI.cc.

References HdrHeapSDKHandle::m_heap, new_HdrHeap(), sdk_assert, sdk_sanity_check_mbuffer(), and TS_SUCCESS.

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

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:
bufp marshal buffer to be destroyed.

Definition at line 1906 of file InkAPI.cc.

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

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

TSReturnCode TSMgmtConfigIntSet ( const char *  var_name,
TSMgmtInt  value 
)

Definition at line 6996 of file InkAPI.cc.

References RecSignalManager(), TS_SUCCESS, and TSMgmtIntGet().

TSReturnCode TSMgmtCounterGet ( const char *  var_name,
TSMgmtCounter result 
)

Definition at line 4168 of file InkAPI.cc.

References REC_ERR_OKAY, RecGetRecordCounter(), and TS_SUCCESS.

Referenced by SDK_API_TSMgmtGet().

TSReturnCode TSMgmtFloatGet ( const char *  var_name,
TSMgmtFloat result 
)

Definition at line 4174 of file InkAPI.cc.

References REC_ERR_OKAY, RecGetRecordFloat(), and TS_SUCCESS.

Referenced by SDK_API_TSMgmtGet().

TSReturnCode TSMgmtIntCreate ( TSRecordType  rec_type,
const char *  name,
TSMgmtInt  data_default,
TSRecordUpdateType  update_type,
TSRecordCheckType  check_type,
const char *  check_regex,
TSRecordAccessType  access_type 
)

Definition at line 8493 of file InkAPI.cc.

References REC_ERR_OKAY, RecRegisterConfigInt(), and TS_RECORDCHECK_NULL.

TSReturnCode TSMgmtIntGet ( const char *  var_name,
TSMgmtInt result 
)

Definition at line 4162 of file InkAPI.cc.

References REC_ERR_OKAY, RecGetRecordInt(), and TS_SUCCESS.

Referenced by SDK_API_TSMgmtGet(), and TSMgmtConfigIntSet().

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 
)

Definition at line 8479 of file InkAPI.cc.

References REC_ERR_OKAY, RecRegisterConfigString(), and TS_RECORDCHECK_NULL.

TSReturnCode TSMgmtStringGet ( const char *  var_name,
TSMgmtString result 
)

Definition at line 4180 of file InkAPI.cc.

References RecGetRecordString_Xmalloc().

Referenced by SDK_API_TSMgmtGet().

void TSMgmtUpdateRegister ( TSCont  contp,
const char *  plugin_name 
)
const char* TSMimeFieldValueGet ( TSMBuffer  ,
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_bufp destination marshal buffer.
src_bufp source marshal buffer.
src_hdr location of the source MIME header.
locp where to store the location of the copied MIME header.

Definition at line 2428 of file InkAPI.cc.

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

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_bufp is the destination marshal buffer.
dest_offset 
src_bufp is the source marshal buffer.
src_offset 

Definition at line 2456 of file InkAPI.cc.

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

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:
bufp marshal buffer to contain the new MIME header.
locp buffer pointer to contain the MLoc

Definition at line 2392 of file InkAPI.cc.

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

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:
bufp marshal buffer containing the MIME header to destroy.
offset location of the MIME header.

Definition at line 2408 of file InkAPI.cc.

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

Referenced by SDK_API_TSHttpHdrParse(), SDK_API_TSMimeHdrField(), 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:
bufp marshal buffer containing the MIME field.
hdr location of the MIME header containing the field.
retrieved_str specifies 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.

Definition at line 2685 of file InkAPI.cc.

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

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:
bufp contains the MIME field to be destroyed.
hdr location of the parent header containing the field to be destroyed. This could be the location of a MIME header or HTTP header.
field location of the field to be destroyed.

Definition at line 2761 of file InkAPI.cc.

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

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 specified 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:
bufp marshal buffer containing the MIME header field to find.
hdr location of the MIME header containing the field.
name of the field to retrieve.
length string 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.

Definition at line 2662 of file InkAPI.cc.

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

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

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:
bufp marshal buffer containing the MIME header.
hdr location of the MIME header.
idx index of the field to get with base at 0.
Returns:
location of the specified MIME field.

Definition at line 2642 of file InkAPI.cc.

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

Referenced by SDK_API_TSMimeHdrField(), SDK_API_TSMimeHdrParse(), and SpdyNV::SpdyNV().

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:
bufp contains the MIME field to remove.
hdr location of the header containing the MIME field to be removed. This header could be an HTTP header or MIME header.
field is the location of the field to remove.

Definition at line 2735 of file InkAPI.cc.

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

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:
bufp marshal buffer containing the MIME header.
offset location of the MIME header.

Definition at line 2548 of file InkAPI.cc.

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

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:
bufp marshal buffer containing the MIME header.
offset location of the MIME header within bufp.
Returns:
number of MIME fields within the MIME header located at hdr_loc.

Definition at line 2564 of file InkAPI.cc.

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

Referenced by SDK_API_TSMimeHdrField(), and SpdyNV::SpdyNV().

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.

Definition at line 3061 of file InkAPI.cc.

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

Referenced by SDK_API_TSMimeHdrField(), and TSMimeHdrFieldValueDateInsert().

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 
)
TSReturnCode TSMimeHdrFieldValueUintSet ( TSMBuffer  bufp,
TSMLoc  hdr,
TSMLoc  field,
int  idx,
unsigned int  value 
)
int TSMimeHdrLengthGet ( TSMBuffer  bufp,
TSMLoc  offset 
)

Calculates the length of the MIME header located at hdr_loc if it were returned as a string.

This the length of the MIME header in its unparsed form.

Parameters:
bufp marshal buffer containing the MIME header.
offset location of the MIME header.
Returns:
string length of the MIME header located at hdr_loc.

Definition at line 2537 of file InkAPI.cc.

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

Referenced by SDK_API_TSMimeHdrParse(), and SpdyNV::SpdyNV().

TSParseResult TSMimeHdrParse ( TSMimeParser  parser,
TSMBuffer  bufp,
TSMLoc  offset,
const char **  start,
const char *  end 
)

Parses a MIME header.

The MIME header must have already been allocated and both bufp and hdr_loc must point within that header. It is possible to parse a MIME header a single byte at a time using repeated calls to TSMimeHdrParse(). As long as an error does not occur, TSMimeHdrParse() consumes each single byte and asks for more.

Parameters:
parser parses the specified MIME header.
bufp marshal buffer containing the MIME header to be parsed.
offset 
start both an input and output. On input, the start argument points to the current position of the buffer being parsed. On return, start is modified to point past the last character parsed.
end points to one byte after the end of the buffer.
Returns:
One of 3 possible int values:
  • TS_PARSE_ERROR if there is a parsing error.
  • TS_PARSE_DONE is returned when a "\r\n\r\n" pattern is encountered, indicating the end of the header.
  • TS_PARSE_CONT is returned if parsing of the header stopped because the end of the buffer was reached.

Definition at line 2518 of file InkAPI.cc.

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

Referenced by SDK_API_TSMimeHdrParse().

void TSMimeHdrPrint ( TSMBuffer  bufp,
TSMLoc  offset,
TSIOBuffer  iobufp 
)

Formats the MIME header located at hdr_loc within bufp into the TSIOBuffer iobufp.

Parameters:
bufp marshal buffer containing the header to be copied to an TSIOBuffer.
offset 
iobufp target TSIOBuffer.

Definition at line 2486 of file InkAPI.cc.

References _hdr_mloc_to_mime_hdr_impl(), MIOBuffer::add_block(), IOBufferBlock::end(), MIOBuffer::fill(), MIOBuffer::get_current_block(), mime_hdr_print(), sdk_assert, sdk_sanity_check_http_hdr_handle(), sdk_sanity_check_iocore_structure(), sdk_sanity_check_mbuffer(), sdk_sanity_check_mime_hdr_handle(), TS_SUCCESS, and IOBufferBlock::write_avail().

Referenced by convert_mime_hdr_to_string().

void TSMimeParserClear ( TSMimeParser  parser  ) 

Clears the specified MIME parser so that it can be used again.

Parameters:
parser to be cleared.

Definition at line 2368 of file InkAPI.cc.

References mime_parser_clear(), sdk_assert, sdk_sanity_check_mime_parser(), and TS_SUCCESS.

Referenced by SDK_API_TSMimeHdrParse().

TSMimeParser TSMimeParserCreate ( void   ) 

Creates a MIME parser.

The parser's data structure contains information about the header being parsed. A single MIME parser can be used multiple times, though not simultaneously. Before being used again, the parser must be cleared by calling TSMimeParserClear().

Definition at line 2359 of file InkAPI.cc.

References ats_malloc(), and mime_parser_init().

Referenced by SDK_API_TSMimeHdrParse().

void TSMimeParserDestroy ( TSMimeParser  parser  ) 

Destroys the specified MIME parser and frees the associated memory.

Parameters:
parser to destroy.

Definition at line 2376 of file InkAPI.cc.

References ats_free(), mime_parser_clear(), sdk_assert, sdk_sanity_check_mime_parser(), and TS_SUCCESS.

Referenced by SDK_API_TSMimeHdrParse().

TSAction TSNetAccept ( TSCont  contp,
int  port,
int  domain,
int  accept_threads 
)
TSReturnCode TSNetAcceptNamedProtocol ( TSCont  contp,
const char *  protocol 
)

Listen on all SSL ports for connections for the specified protocol name.

TSNetAcceptNamedProtocol registers the specified protocol for all statically configured TLS ports. When a client using the TLS Next Protocol Negotiation extension negotiates the requested protocol, TrafficServer will route the request to the given handler. Note that the protocol is not registered on ports opened by other plugins.

The event and data provided to the handler are the same as for TSNetAccept(). If a connection is successfully accepted, the event code will be TS_EVENT_NET_ACCEPT and the event data will be a valid TSVConn bound to the accepted connection.

Neither contp nor protocol are copied. They must remain valid for the lifetime of the plugin.

TSNetAcceptNamedProtocol fails if the requested protocol cannot be registered on all of the configured TLS ports. If it fails, the protocol will not be registered on any ports (ie.. no partial failure).

Definition at line 6522 of file InkAPI.cc.

TSAction TSNetConnect ( TSCont  contp,
sockaddr const *  addr 
)
TSAction TSNetConnectTransparent ( TSCont  contp,
sockaddr const *  client_addr,
sockaddr const *  server_addr 
)
sockaddr const* TSNetVConnLocalAddrGet ( TSVConn  connp  )  [read]
sockaddr const* TSNetVConnRemoteAddrGet ( TSVConn  connp  )  [read]
TSReturnCode TSPluginDescriptorAccept ( TSCont  contp  ) 

Attempt to attach the contp continuation to sockets that have already been opened by the traffic manager and defined as belonging to plugins (based on records.config configuration).

If a connection is successfully accepted, the TS_EVENT_NET_ACCEPT is delivered to the continuation. The event data will be a valid TSVConn bound to the accepted connection. In order to configure such a socket, add the "plugin" keyword to a port in proxy.config.http.server_ports like "8082:plugin" Transparency/IP settings can also be defined, but a port cannot have both the "ssl" or "plugin" keywords configured.

Need to update records.config comments on proxy.config.http.server_ports when this option is promoted from experimental.

Definition at line 8557 of file InkAPI.cc.

References HttpProxyPort::global(), HttpProxyPort::isPlugin(), Vec< C, A, S >::length(), HttpProxyPort::m_fd, NetProcessor::main_accept(), make_net_accept_options(), netProcessor, and TS_SUCCESS.

const char* TSPluginDirGet ( void   ) 

Gets the path of the plugin directory relative to the Traffic Server install directory.

For example, to open the file "config_ui.txt" in the plugin directory:

      TSfopen("TSPluginInstallDirGet()/TSPluginDirGet()/config_ui.txt");
Returns:
pointer to plugin directory relative to Traffic Server install directory.

Definition at line 1737 of file InkAPI.cc.

References ats_free(), ink_strlcpy(), PATH_NAME_MAX, plugin_dir, and RecConfigReadPrefixPath().

Referenced by plugin_init(), remap_load_plugin(), and SDK_API_TSPluginDirGet().

TSReturnCode TSPluginRegister ( TSSDKVersion  sdk_version,
TSPluginRegistrationInfo plugin_info 
)

This function registers your plugin with a particular version of Traffic Server SDK.

Use this function to make sure that the Traffic Server version currently running also supports your plugin. See the SDK sample code for usage.

Parameters:
sdk_version earliest version of the Traffic Server SDK that supports your plugin.
plugin_info contains registration information about your plugin. See TSPluginRegistrationInfo.
Returns:
TS_ERROR if the plugin registration failed.

Definition at line 1757 of file InkAPI.cc.

References ats_strdup, PluginRegInfo::plugin_name, plugin_reg_current, PluginRegInfo::plugin_registered, PLUGIN_SDK_VERSION_3_0, PLUGIN_SDK_VERSION_4_0, sdk_assert, sdk_sanity_check_null_ptr(), PluginRegInfo::sdk_version, PluginRegInfo::support_email, TS_SUCCESS, and PluginRegInfo::vendor_name.

TSReturnCode TSPortDescriptorAccept ( TSPortDescriptor  ,
TSCont   
)

Start listening on the given port descriptor.

If a connection is successfully accepted, the TS_EVENT_NET_ACCEPT is delivered to the continuation. The event data will be a valid TSVConn bound to the accepted connection.

Definition at line 8541 of file InkAPI.cc.

References HttpProxyPort::isSSL(), HttpProxyPort::m_fd, NetProcessor::main_accept(), make_net_accept_options(), netProcessor, sslNetProcessor, and TS_SUCCESS.

Referenced by SDK_API_TSPortDescriptor().

TSPortDescriptor TSPortDescriptorParse ( const char *  descriptor  ) 

Create a new port from the string specification used by the proxy.config.http.server_ports configuration value.

Definition at line 8528 of file InkAPI.cc.

References HttpProxyPort::processOptions().

Referenced by SDK_API_TSPortDescriptor().

unsigned int TSrandom ( void   ) 

Definition at line 1691 of file InkAPI.cc.

References EThread::generator, InkRand::random(), and this_ethread().

void TSRecordDump ( int  rec_type,
TSRecordDumpCb  callback,
void *  edata 
)

Definition at line 7489 of file InkAPI.cc.

References RecDumpRecords().

const char* TSRedirectUrlGet ( TSHttpTxn  txnp,
int *  url_len_ptr 
)

Definition at line 7207 of file InkAPI.cc.

References TSHttpTxnRedirectUrlGet().

void TSRedirectUrlSet ( TSHttpTxn  txnp,
const char *  url,
const int  url_len 
)
void TSSkipRemappingSet ( TSHttpTxn  txnp,
int  flag 
)
int TSStatCreate ( const char *  the_name,
TSRecordDataType  the_type,
TSStatPersistence  persist,
TSStatSync  sync 
)
TSReturnCode TSStatFindName ( const char *  name,
int *  idp 
)
void TSStatIntDecrement ( int  the_stat,
TSMgmtInt  amount 
)

Definition at line 6701 of file InkAPI.cc.

References RecDecrRawStat().

TSMgmtInt TSStatIntGet ( int  the_stat  ) 

Definition at line 6707 of file InkAPI.cc.

References RecGetGlobalRawStatSum().

void TSStatIntIncrement ( int  the_stat,
TSMgmtInt  amount 
)

Definition at line 6695 of file InkAPI.cc.

References RecIncrRawStat().

void TSStatIntSet ( int  the_stat,
TSMgmtInt  value 
)

Definition at line 6716 of file InkAPI.cc.

References RecSetGlobalRawStatSum().

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.

The source and destination can be the same, in which case they overwrite. The decoded string is always guaranteed to be no longer than the source string.

Parameters:
str the string to decode (and possibly write to).
str_len length of the input string (or 0).
dst output buffer (can be the same as src).
dst_len size of the output buffer.
length amount of data written to the destination buffer.

Definition at line 2306 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_null_ptr(), TS_SUCCESS, and unescape_str().

Referenced by SDK_API_ENCODING().

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.

The length parameter will be set to the new (encoded) string length, or 0 if the encoding failed.

Parameters:
str the string buffer to encode.
str_len length of the string buffer.
dst destination buffer.
dst_size size of the destination buffer.
length amount of data written to the destination buffer.
map optional (can be NULL) map of characters to encode.

Definition at line 2280 of file InkAPI.cc.

References LogUtils::escapify_url(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.

Referenced by SDK_API_ENCODING(), and TSUrlPercentEncode().

TSReturnCode TSTextLogObjectCreate ( const char *  filename,
int  mode,
TSTextLogObject new_log_obj 
)

Creates a new custom log file that your plugin can write to.

You can design the fields and inputs to the log file using the TSTextLogObjectWrite() function. The logs you create are treated like ordinary logs; they are rolled if log rolling is enabled. (Log collation is not supported though).

Parameters:
filename new log file being created. The new log file is created in the logs directory. You can specify a path to a subdirectory within the log directory, e.g. subdir/filename, but make sure you create the subdirectory first. If you do not specify a file name extension, the extension ".log" is automatically added.
mode is one (or both) of the following:

  • TS_LOG_MODE_ADD_TIMESTAMP Whenever the plugin makes a log entry using TSTextLogObjectWrite (see below), it prepends the entry with a timestamp.
  • TS_LOG_MODE_DO_NOT_RENAME This means that if there is a filename conflict, Traffic Server should not attempt to rename the custom log. The consequence of a name conflict is that the custom log will simply not be created, e.g. suppose you call:
                log = TSTextLogObjectCreate("squid" , mode, NULL, &error);
    
    If mode is TS_LOG_MODE_DO_NOT_RENAME, you will NOT get a new log (you'll get a null pointer) if squid.log already exists. If mode is not TS_LOG_MODE_DO_NOT_RENAME, Traffic Server tries to rename the log to a new name (it will try squid_1.log).
new_log_obj new custom log file.
Returns:
error code:
  • TS_LOG_ERROR_NO_ERROR No error; the log object has been created successfully.
  • TS_LOG_ERROR_OBJECT_CREATION Log object not created. This error is rare and would most likely be caused by the system running out of memory.
  • TS_LOG_ERROR_FILENAME_CONFLICTS You get this error if mode = TS_LOG_MODE_DO_NOT_RENAME, and if there is a naming conflict. The log object is not created.
  • TS_LOG_ERROR_FILE_ACCESS Log object not created because of a file access problem (for example, no write permission to the logging directory, or a specified subdirectory for the log file does not exist).

Definition at line 6783 of file InkAPI.cc.

References Log::config, LogConfig::log_object_manager, LogObjectManager::manage_api_object(), LogObjectManager::NO_FILENAME_CONFLICTS, sdk_assert, sdk_sanity_check_null_ptr(), TS_LOG_MODE_ADD_TIMESTAMP, TS_LOG_MODE_DO_NOT_RENAME, TS_LOG_MODE_INVALID_FLAG, and TS_SUCCESS.

Referenced by SDK_API_TSTextLog().

TSReturnCode TSTextLogObjectDestroy ( TSTextLogObject  the_object  ) 

Destroys a log object and releases the memory allocated to it.

Use this call if you are done with the log.

Parameters:
the_object custom log to be destroyed.

Definition at line 6857 of file InkAPI.cc.

References Log::config, sdk_assert, sdk_sanity_check_iocore_structure(), and TS_SUCCESS.

Referenced by log_test_handler().

void TSTextLogObjectFlush ( TSTextLogObject  the_object  ) 

This immediately flushes the contents of the log write buffer for the_object to disk.

Use this call only if you want to make sure that log entries are flushed immediately. This call has a performance cost. Traffic Server flushes the log buffer automatically about every 1 second.

Parameters:
the_object custom log file whose write buffer is to be flushed.

Definition at line 6849 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_iocore_structure(), and TS_SUCCESS.

Referenced by SDK_API_TSTextLog().

void TSTextLogObjectHeaderSet ( TSTextLogObject  the_object,
const char *  header 
)

Set log header.

Definition at line 6868 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_iocore_structure(), and TS_SUCCESS.

TSReturnCode TSTextLogObjectRollingEnabledSet ( TSTextLogObject  the_object,
int  rolling_enabled 
)

Enable/disable rolling.

Parameters:
rolling_enabled a valid proxy.config.log.rolling_enabled value.

Definition at line 6876 of file InkAPI.cc.

References LogRollingEnabledIsValid(), sdk_assert, sdk_sanity_check_iocore_structure(), and TS_SUCCESS.

void TSTextLogObjectRollingIntervalSecSet ( TSTextLogObject  the_object,
int  rolling_interval_sec 
)

Set the rolling interval.

Definition at line 6889 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_iocore_structure(), and TS_SUCCESS.

void TSTextLogObjectRollingOffsetHrSet ( TSTextLogObject  the_object,
int  rolling_offset_hr 
)

Set the rolling offset.

rolling_offset_hr specifies the hour (between 0 and 23) when log rolling should take place.

Definition at line 6897 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_iocore_structure(), and TS_SUCCESS.

TSReturnCode TSTextLogObjectWrite ( TSTextLogObject  the_object,
const char *  format,
  ... 
)
const char* TSTrafficServerVersionGet ( void   ) 

Gets the version of Traffic Server currently running.

Use this function to make sure that the plugin version and Traffic Server version are compatible. See the SDK sample code for usage.

Returns:
pointer to version of Traffic Server running the plugin.

Definition at line 1727 of file InkAPI.cc.

References traffic_server_version.

Referenced by SDK_API_TSTrafficServerVersionGet().

int TSTrafficServerVersionGetMajor ( void   ) 

Get the major version of Traffic Server currently running.

This is the same as the first element of the string returned by TSTrafficServerVersionGet

Returns:
The major version as an integer.

Definition at line 1732 of file InkAPI.cc.

References ts_major_version.

int TSTrafficServerVersionGetMinor ( void   ) 

Get the minor version of Traffic Server currently running.

This is the same as the second element of the string returned by TSTrafficServerVersionGet

Returns:
The minor version as an integer.

Definition at line 1733 of file InkAPI.cc.

References ts_minor_version.

int TSTrafficServerVersionGetPatch ( void   ) 

Get the patch version of Traffic Server currently running.

This is the same as the third element of the string returned by TSTrafficServerVersionGet

Returns:
The patch version as an integer.

Definition at line 1734 of file InkAPI.cc.

References ts_patch_version.

TSVConn TSTransformCreate ( TSEventFunc  event_funcp,
TSHttpTxn  txnp 
)

Definition at line 6341 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_txn(), TS_SUCCESS, TSContMutexGet(), and TSVConnCreate().

Referenced by transform_add().

TSVConn TSTransformOutputVConnGet ( TSVConn  connp  ) 
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.

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

Parameters:
dest_bufp marshal buffer containing the cloned URL.
src_bufp marshal buffer containing the URL to be cloned.
src_url location of the URL to be cloned, within the marshal buffer src_bufp.
locp pointer to a TSMLoc to store the MLoc into.

Definition at line 1951 of file InkAPI.cc.

References isWriteable(), sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_null_ptr(), sdk_sanity_check_url_handle(), TS_SUCCESS, and url_copy().

Referenced by SDK_API_TSUrl().

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

Copies the contents of the URL at location src_loc within the marshal buffer src_bufp to the location dest_loc within the marshal buffer dest_bufp.

TSUrlCopy() works correctly even if src_bufp and dest_bufp point to different marshal buffers. Important: create the destination URL before copying into it. Use TSUrlCreate().

Parameters:
dest_bufp marshal buffer to contain the copied URL.
dest_offset location of the URL to be copied.
src_bufp marshal buffer containing the source URL.
src_offset location of the source URL within src_bufp.

Definition at line 1974 of file InkAPI.cc.

References isWriteable(), sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_url_handle(), TS_SUCCESS, and url_copy_onto().

Referenced by SDK_API_TSUrl().

TSReturnCode TSUrlCreate ( TSMBuffer  bufp,
TSMLoc locp 
)

Creates a new URL within the marshal buffer bufp.

Returns a location for the URL within the marshal buffer.

Parameters:
bufp marshal buffer containing the new URL.
locp pointer to a TSMLoc to store the MLoc into.

Definition at line 1931 of file InkAPI.cc.

References isWriteable(), sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_null_ptr(), TS_SUCCESS, and url_create().

Referenced by SDK_API_TSHttpHdr(), SDK_API_TSUrl(), and SDK_API_TSUrlParse().

TSReturnCode TSUrlDestroy ( TSMBuffer  bufp,
TSMLoc  offset 
)

Destroys the URL located at url_loc within the marshal buffer bufp.

Do not forget to release the TSMLoc url_loc with a call to TSHandleMLocRelease().

Parameters:
bufp marshal buffer containing the URL to be destroyed.
offset location of the URL to be destroyed.
Deprecated:
There is no reason to destroy the URL, just release the marshal buffers.

Should be removed for v5.0.0

Definition at line 1945 of file InkAPI.cc.

int TSUrlFtpTypeGet ( TSMBuffer  bufp,
TSMLoc  offset 
)

Retrieves the FTP type of the URL located at url_loc within bufp.

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
Returns:
FTP type of the URL.

Definition at line 2208 of file InkAPI.cc.

References HdrHeapSDKHandle::m_heap, URL::m_url_impl, sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_url_handle(), TS_SUCCESS, and URL::type_get().

Referenced by SDK_API_TSUrl().

TSReturnCode TSUrlFtpTypeSet ( TSMBuffer  bufp,
TSMLoc  offset,
int  type 
)

Sets the FTP type portion of the URL located at url_loc within bufp to the value type.

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL to modify.
type new FTP type for the URL.

Definition at line 2220 of file InkAPI.cc.

References isWriteable(), HdrHeapSDKHandle::m_heap, URL::m_url_impl, sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_url_handle(), TS_SUCCESS, and URL::type_set().

Referenced by SDK_API_TSUrl().

const char* TSUrlHostGet ( TSMBuffer  bufp,
TSMLoc  offset,
int *  length 
)

Retrieves the host portion of the URL located at url_loc within bufp.

Note: the returned string is not guaranteed to be null-terminated.

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
length of the returned string.
Returns:
Host portion of the URL.

Definition at line 2150 of file InkAPI.cc.

References URL::host_get(), and URLPartGet().

Referenced by SDK_API_TSHttpHdr(), and SDK_API_TSUrl().

TSReturnCode TSUrlHostSet ( TSMBuffer  bufp,
TSMLoc  offset,
const char *  value,
int  length 
)

Sets the host portion of the URL at url_loc to the string value.

If length is -1 then TSUrlHostSet() assumes that value is null-terminated. Otherwise, the length of the string value is taken to be length. The string is copied to within bufp, so you can modify or delete value after calling TSUrlHostSet().

Parameters:
bufp marshal buffer containing the URL to modify.
offset location of the URL.
value new host name for the URL.
length string length of the new host name of the URL.

Definition at line 2156 of file InkAPI.cc.

References URL::host_set(), and URLPartSet().

Referenced by SDK_API_TSHttpHdr(), and SDK_API_TSUrl().

const char* TSUrlHttpFragmentGet ( TSMBuffer  bufp,
TSMLoc  offset,
int *  length 
)

Retrieves the HTTP fragment portion of the URL located at url_loc within bufp.

The length of the returned string is in the length argument. Note: the returned string is not guaranteed to be null-terminated.

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
length of the returned string.
Returns:
HTTP fragment portion of the URL.

Definition at line 2267 of file InkAPI.cc.

References URL::fragment_get(), and URLPartGet().

Referenced by SDK_API_TSUrl().

TSReturnCode TSUrlHttpFragmentSet ( TSMBuffer  bufp,
TSMLoc  offset,
const char *  value,
int  length 
)

Sets the HTTP fragment portion of the URL located at url_loc within bufp to value.

If length is -1, the string value is assumed to be null-terminated; otherwise, the length of value is taken to be length. TSUrlHttpFragmentSet() copies the string to within bufp, so you can modify or delete value after calling TSUrlHttpFragmentSet().

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL within bufp.
value new HTTP fragment string for the URL.
length of the new HTTP query string.

Definition at line 2273 of file InkAPI.cc.

References URL::fragment_set(), and URLPartSet().

Referenced by SDK_API_TSUrl().

const char* TSUrlHttpParamsGet ( TSMBuffer  bufp,
TSMLoc  offset,
int *  length 
)

Retrieves the HTTP params portion of the URL located at url_loc within bufp.

The length of the returned string is in the length argument. Note: the returned string is not guaranteed to be null-terminated.

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
length of the returned string.
Returns:
HTTP params portion of the URL.

Definition at line 2243 of file InkAPI.cc.

References URL::params_get(), and URLPartGet().

Referenced by SDK_API_TSUrl().

TSReturnCode TSUrlHttpParamsSet ( TSMBuffer  bufp,
TSMLoc  offset,
const char *  value,
int  length 
)

Sets the HTTP params portion of the URL located at url_loc within bufp to the string value.

If length is -1 that TSUrlHttpParamsSet() assumes that value is null-terminated. Otherwise, the length of the string value is taken to be length. TSUrlHttpParamsSet() copies the string to within bufp, so you can modify or delete value after calling TSUrlHttpParamsSet().

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
value HTTP params string to set in the URL.
length string length of the new HTTP params value.

Definition at line 2249 of file InkAPI.cc.

References URL::params_set(), and URLPartSet().

Referenced by SDK_API_TSUrl().

const char* TSUrlHttpQueryGet ( TSMBuffer  bufp,
TSMLoc  offset,
int *  length 
)

Retrieves the HTTP query portion of the URL located at url_loc within bufp.

The length of the returned string is in the length argument. Note: the returned string is not guaranteed to be null-terminated.

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
length of the returned string.
Returns:
HTTP query portion of the URL.

Definition at line 2255 of file InkAPI.cc.

References URL::query_get(), and URLPartGet().

Referenced by SDK_API_TSUrl().

TSReturnCode TSUrlHttpQuerySet ( TSMBuffer  bufp,
TSMLoc  offset,
const char *  value,
int  length 
)

Sets the HTTP query portion of the URL located at url_loc within bufp to value.

If length is -1, the string value is assumed to be null-terminated; otherwise, the length of value is taken to be length. TSUrlHttpQuerySet() copies the string to within bufp, so you can modify or delete value after calling TSUrlHttpQuerySet().

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL within bufp.
value new HTTP query string for the URL.
length of the new HTTP query string.

Definition at line 2261 of file InkAPI.cc.

References URL::query_set(), and URLPartSet().

Referenced by SDK_API_TSUrl().

int TSUrlLengthGet ( TSMBuffer  bufp,
TSMLoc  offset 
)

Calculates the length of the URL located at url_loc within the marshal buffer bufp if it were returned as a string.

This length is the same as the length returned by TSUrlStringGet().

Parameters:
bufp marshal buffer containing the URL whose length you want.
offset location of the URL within the marshal buffer bufp.
Returns:
string length of the URL.

Definition at line 2051 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_url_handle(), TS_SUCCESS, and url_length_get().

Referenced by SDK_API_TSUrl().

TSParseResult TSUrlParse ( TSMBuffer  bufp,
TSMLoc  offset,
const char **  start,
const char *  end 
)

Parses a URL.

The start pointer is both an input and an output parameter and marks the start of the URL to be parsed. After a successful parse, the start pointer equals the end pointer. The end pointer must be one byte after the last character you want to parse. The URL parsing routine assumes that everything between start and end is part of the URL. It is up to higher level parsing routines, such as TSHttpHdrParseReq(), to determine the actual end of the URL. Returns TS_PARSE_ERROR if an error occurs, otherwise TS_PARSE_DONE is returned to indicate success.

Parameters:
bufp marshal buffer containing the URL to be parsed.
offset location of the URL to be parsed.
start points to the start of the URL to be parsed AND at the end of a successful parse it will equal the end pointer.
end must be one byte after the last character.
Returns:
TS_PARSE_ERROR or TS_PARSE_DONE.

Definition at line 2032 of file InkAPI.cc.

References isWriteable(), HdrHeapSDKHandle::m_heap, URL::m_url_impl, URL::parse(), sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_null_ptr(), sdk_sanity_check_url_handle(), TS_SUCCESS, and url_clear().

Referenced by SDK_API_TSUrlParse().

const char* TSUrlPasswordGet ( TSMBuffer  bufp,
TSMLoc  offset,
int *  length 
)

Retrieves the password portion of the URL located at url_loc within bufp.

TSUrlPasswordGet() places the length of the returned string in the length argument. Note: the returned string is not guaranteed to be null-terminated.

Parameters:
bufp marshal buffer containing the URL.
offset 
length of the returned password string.
Returns:
password portion of the URL.

Definition at line 2138 of file InkAPI.cc.

References URL::password_get(), and URLPartGet().

Referenced by SDK_API_TSUrl().

TSReturnCode TSUrlPasswordSet ( TSMBuffer  bufp,
TSMLoc  offset,
const char *  value,
int  length 
)

Sets the password portion of the URL located at url_loc within bufp to the string value.

If length is -1 then TSUrlPasswordSet() assumes that value is null-terminated. Otherwise, the length of value is taken to be length. TSUrlPasswordSet() copies the string to within bufp, so it is okay to modify or delete value after calling TSUrlPasswordSet().

Parameters:
bufp marshal buffer containing the URL.
offset 
value new password.
length of the new password.

Definition at line 2144 of file InkAPI.cc.

References URL::password_set(), and URLPartSet().

Referenced by SDK_API_TSUrl().

const char* TSUrlPathGet ( TSMBuffer  bufp,
TSMLoc  offset,
int *  length 
)

Retrieves the path portion of the URL located at url_loc within bufp.

TSUrlPathGet() places the length of the returned string in the length argument. Note: the returned string is not guaranteed to be null-terminated.

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
length of the returned string.
Returns:
path portion of the URL.

Definition at line 2194 of file InkAPI.cc.

References URL::path_get(), and URLPartGet().

Referenced by SDK_API_TSHttpHdr(), and SDK_API_TSUrl().

TSReturnCode TSUrlPathSet ( TSMBuffer  bufp,
TSMLoc  offset,
const char *  value,
int  length 
)

Sets the path portion of the URL located at url_loc within bufp to the string value.

If length is -1 then TSUrlPathSet() assumes that value is null-terminated. Otherwise, the length of the value is taken to be length. TSUrlPathSet() copies the string into bufp, so you can modify or delete value after calling TSUrlPathSet().

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
value new path string for the URL.
length of the new path string.

Definition at line 2200 of file InkAPI.cc.

References URL::path_set(), and URLPartSet().

Referenced by SDK_API_TSHttpHdr(), and SDK_API_TSUrl().

TSReturnCode TSUrlPercentEncode ( TSMBuffer  bufp,
TSMLoc  offset,
char *  dst,
size_t  dst_size,
size_t *  length,
const unsigned char *  map 
)

Similar to TSStringPercentEncode(), but works on a URL object.

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL within bufp.
dst destination buffer.
dst_size size of the destination buffer.
length amount of data written to the destination buffer.
map optional (can be NULL) map of characters to encode.

Definition at line 2329 of file InkAPI.cc.

References ats_free(), sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_url_handle(), TS_SUCCESS, TSStringPercentEncode(), and url_string_get().

int TSUrlPortGet ( TSMBuffer  bufp,
TSMLoc  offset 
)

Retrieves the port portion of the URL located at url_loc.

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
Returns:
port portion of the URL.

Definition at line 2162 of file InkAPI.cc.

References HdrHeapSDKHandle::m_heap, URL::m_url_impl, URL::port_get(), sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_url_handle(), and TS_SUCCESS.

Referenced by SDK_API_TSHttpHdr(), and SDK_API_TSUrl().

TSReturnCode TSUrlPortSet ( TSMBuffer  bufp,
TSMLoc  offset,
int  port 
)

Sets the port portion of the URL located at url_loc.

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
port new port setting for the URL.

Definition at line 2175 of file InkAPI.cc.

References isWriteable(), HdrHeapSDKHandle::m_heap, URL::m_url_impl, URL::port_set(), sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_url_handle(), and TS_SUCCESS.

Referenced by SDK_API_TSHttpHdr(), and SDK_API_TSUrl().

void TSUrlPrint ( TSMBuffer  bufp,
TSMLoc  offset,
TSIOBuffer  iobufp 
)

Formats a URL stored in an TSMBuffer into an TSIOBuffer.

Parameters:
bufp marshal buffer contain the URL to be printed.
offset location of the URL within bufp.
iobufp destination TSIOBuffer for the URL.

Definition at line 1997 of file InkAPI.cc.

References MIOBuffer::add_block(), IOBufferBlock::end(), MIOBuffer::fill(), MIOBuffer::get_current_block(), HdrHeapSDKHandle::m_heap, URL::m_url_impl, URL::print(), sdk_assert, sdk_sanity_check_iocore_structure(), sdk_sanity_check_mbuffer(), sdk_sanity_check_url_handle(), TS_SUCCESS, and IOBufferBlock::write_avail().

Referenced by test_url_print().

const char* TSUrlSchemeGet ( TSMBuffer  bufp,
TSMLoc  offset,
int *  length 
)

Retrieves the scheme portion of the URL located at url_loc within the marshal buffer bufp.

TSUrlSchemeGet() places the length of the string in the length argument. If the length is NULL then no attempt is made to dereference it.

Parameters:
bufp marshal buffer storing the URL.
offset location of the URL within bufp.
length length of the returned string.
Returns:
The scheme portion of the URL, as a string.

Definition at line 2112 of file InkAPI.cc.

References URL::scheme_get(), and URLPartGet().

Referenced by SDK_API_TSHttpHdr(), and SDK_API_TSUrl().

TSReturnCode TSUrlSchemeSet ( TSMBuffer  bufp,
TSMLoc  offset,
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.

If length is -1 then TSUrlSchemeSet() assumes that value is null-terminated. Otherwise, the length of the string value is taken to be length. TSUrlSchemeSet() copies the string to within bufp, so it is OK to modify or delete value after calling TSUrlSchemeSet().

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
value value to set the URL's scheme to.
length string stored in value.

Definition at line 2118 of file InkAPI.cc.

References URL::scheme_set(), and URLPartSet().

Referenced by SDK_API_TSHttpHdr(), and SDK_API_TSUrl().

char* TSUrlStringGet ( TSMBuffer  bufp,
TSMLoc  offset,
int *  length 
)

Constructs a string representation of the URL located at url_loc within bufp.

TSUrlStringGet() stores the length of the allocated string in the parameter length. This is the same length that TSUrlLengthGet() returns. The returned string is allocated by a call to TSmalloc(). It should be freed by a call to TSfree(). The length parameter must present, providing storage for the URL string length value. Note: To get the effective URL from a request, use the alternative TSHttpTxnEffectiveUrlStringGet API.

Parameters:
bufp marshal buffer containing the URL you want to get.
offset location of the URL within bufp.
length string length of the URL.
Returns:
The URL as a string.

Definition at line 2061 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_null_ptr(), sdk_sanity_check_url_handle(), TS_SUCCESS, and url_string_get().

Referenced by SDK_API_TSUrl(), and SDK_API_TSUrlParse().

const char* TSUrlUserGet ( TSMBuffer  bufp,
TSMLoc  offset,
int *  length 
)

Retrieves the user portion of the URL located at url_loc within bufp.

Note: the returned string is not guaranteed to be null-terminated.

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL.
length length of the returned string.
Returns:
user portion of the URL.

Definition at line 2126 of file InkAPI.cc.

References URLPartGet(), and URL::user_get().

Referenced by SDK_API_TSUrl().

TSReturnCode TSUrlUserSet ( TSMBuffer  bufp,
TSMLoc  offset,
const char *  value,
int  length 
)

Sets the user portion of the URL located at url_loc within bufp to the string value.

If length is -1 then TSUrlUserSet() assumes that value is null-terminated. Otherwise, the length of the string value is taken to be length. TSUrlUserSet() copies the string to within bufp, so it is OK to modify or delete value after calling TSUrlUserSet().

Parameters:
bufp marshal buffer containing the URL.
offset location of the URL whose user is to be set.
value holds the new user name.
length string length of value.

Definition at line 2132 of file InkAPI.cc.

References URLPartSet(), and URL::user_set().

Referenced by SDK_API_TSUrl().

void TSVConnAbort ( TSVConn  connp,
int  error 
)
void TSVConnActiveTimeoutCancel ( TSVConn  connp  ) 
void TSVConnActiveTimeoutSet ( TSVConn  connp,
TSHRTime  timeout 
)
void TSVConnCacheHttpInfoSet ( TSVConn  connp,
TSCacheHttpInfo  infop 
)
int64_t TSVConnCacheObjectSizeGet ( TSVConn  connp  ) 
void TSVConnClose ( TSVConn  connp  ) 
int TSVConnClosedGet ( TSVConn  connp  ) 
TSVConn TSVConnCreate ( TSEventFunc  event_funcp,
TSMutex  mutexp 
)
TSVConn TSVConnFdCreate ( int  fd  ) 
void TSVConnInactivityTimeoutCancel ( TSVConn  connp  ) 
void TSVConnInactivityTimeoutSet ( TSVConn  connp,
TSHRTime  timeout 
)
TSVIO TSVConnRead ( TSVConn  connp,
TSCont  contp,
TSIOBuffer  bufp,
int64_t  nbytes 
)
TSVIO TSVConnReadVIOGet ( TSVConn  connp  ) 
void TSVConnShutdown ( TSVConn  connp,
int  read,
int  write 
)
TSVIO TSVConnWrite ( TSVConn  connp,
TSCont  contp,
TSIOBufferReader  readerp,
int64_t  nbytes 
)
TSVIO TSVConnWriteVIOGet ( TSVConn  connp  ) 
static const char* URLPartGet ( TSMBuffer  bufp,
TSMLoc  obj,
int *  length,
URLPartGetF  url_f 
) [static]
static TSReturnCode URLPartSet ( TSMBuffer  bufp,
TSMLoc  obj,
const char *  value,
int  length,
URLPartSetF  url_f 
) [static]

Variable Documentation

ActionSink a [static]

Definition at line 86 of file InkAPI.cc.

volatile int api_rsb_index = 0 [static]

Definition at line 85 of file InkAPI.cc.

Referenced by TSStatCreate().

ClassAllocator<APIHook> apiHookAllocator("apiHookAllocator") [static]

Referenced by FetchSM::cleanUp().

Definition at line 367 of file InkAPI.cc.

Referenced by main().

ClassAllocator<INKContInternal> INKContAllocator("INKContAllocator") [static]
ClassAllocator<INKVConnInternal> INKVConnAllocator("INKVConnAllocator") [static]

Definition at line 366 of file InkAPI.cc.

Referenced by CB_After_Cache_Init(), init_ssl_ctx_callback(), main(), and start_HttpProxyServer().

ClassAllocator<MIMEFieldSDKHandle> mHandleAllocator("MIMEFieldSDKHandle") [static]
volatile int next_argv_index = 0 [static]

Definition at line 92 of file InkAPI.cc.

Referenced by TSHttpArgIndexNameLookup(), and TSHttpArgIndexReserve().

Definition at line 42 of file HttpProxyServerMain.cc.

Definition at line 43 of file HttpProxyServerMain.cc.

struct _STATE_ARG_TABLE state_arg_table[HTTP_SSN_TXN_MAX_USER_ARG]
char traffic_server_version[128] = "" [static]

Definition at line 369 of file InkAPI.cc.

Referenced by api_init(), and TSTrafficServerVersionGet().

tsapi int TS_HTTP_LEN_BYTES

Definition at line 314 of file InkAPI.cc.

Referenced by api_init().

Definition at line 315 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_CLOSE

Definition at line 316 of file InkAPI.cc.

Referenced by api_init().

Definition at line 317 of file InkAPI.cc.

Referenced by api_init().

Definition at line 350 of file InkAPI.cc.

Referenced by api_init().

Definition at line 318 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_DELETE

Definition at line 351 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_GET

Definition at line 352 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_GZIP

Definition at line 319 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_HEAD

Definition at line 353 of file InkAPI.cc.

Referenced by api_init().

Definition at line 354 of file InkAPI.cc.

Referenced by api_init().

Definition at line 320 of file InkAPI.cc.

Referenced by api_init().

Definition at line 321 of file InkAPI.cc.

Referenced by api_init().

Definition at line 322 of file InkAPI.cc.

Referenced by api_init().

Definition at line 323 of file InkAPI.cc.

Referenced by api_init().

Definition at line 324 of file InkAPI.cc.

Referenced by api_init().

Definition at line 325 of file InkAPI.cc.

Referenced by api_init().

Definition at line 327 of file InkAPI.cc.

Referenced by api_init().

Definition at line 328 of file InkAPI.cc.

Referenced by api_init().

Definition at line 329 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_NONE

Definition at line 326 of file InkAPI.cc.

Referenced by api_init().

Definition at line 330 of file InkAPI.cc.

Referenced by api_init().

Definition at line 355 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_POST

Definition at line 356 of file InkAPI.cc.

Referenced by api_init().

Definition at line 331 of file InkAPI.cc.

Referenced by api_init().

Definition at line 332 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_PUBLIC

Definition at line 333 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_PURGE

Definition at line 357 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_PUSH

Definition at line 360 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_PUT

Definition at line 358 of file InkAPI.cc.

Referenced by api_init().

Definition at line 334 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_HTTP_LEN_TRACE

Definition at line 359 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_METHOD_CONNECT

Definition at line 337 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_METHOD_DELETE

Definition at line 338 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_METHOD_GET

Definition at line 339 of file InkAPI.cc.

Referenced by api_init(), and SDK_API_TSHttpHdr().

tsapi const char* TS_HTTP_METHOD_HEAD

Definition at line 340 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_METHOD_ICP_QUERY

Definition at line 341 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_METHOD_OPTIONS

Definition at line 342 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_METHOD_POST

Definition at line 343 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_METHOD_PURGE

Definition at line 344 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_METHOD_PUSH

Definition at line 347 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_METHOD_PUT

Definition at line 345 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_METHOD_TRACE

Definition at line 346 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_BYTES

Definition at line 291 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_CHUNKED

Definition at line 292 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_CLOSE

Definition at line 293 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_COMPRESS

Definition at line 294 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_DEFLATE

Definition at line 295 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_GZIP

Definition at line 296 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_IDENTITY

Definition at line 297 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_KEEP_ALIVE

Definition at line 298 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_MAX_AGE

Definition at line 299 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_MAX_STALE

Definition at line 300 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_MIN_FRESH

Definition at line 301 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_MUST_REVALIDATE

Definition at line 302 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_NO_CACHE

Definition at line 304 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_NO_STORE

Definition at line 305 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_NO_TRANSFORM

Definition at line 306 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_NONE

Definition at line 303 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_ONLY_IF_CACHED

Definition at line 307 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_PRIVATE

Definition at line 308 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_PROXY_REVALIDATE

Definition at line 309 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_PUBLIC

Definition at line 310 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_HTTP_VALUE_S_MAXAGE

Definition at line 311 of file InkAPI.cc.

Referenced by api_init().

int ts_major_version = 0 [static]

Definition at line 370 of file InkAPI.cc.

Referenced by api_init(), and TSTrafficServerVersionGetMajor().

tsapi const char* TS_MIME_FIELD_ACCEPT

Definition at line 142 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_ACCEPT_CHARSET

Definition at line 143 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_ACCEPT_ENCODING

Definition at line 144 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_ACCEPT_LANGUAGE

Definition at line 145 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_ACCEPT_RANGES

Definition at line 146 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_AGE

Definition at line 147 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_ALLOW

Definition at line 148 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_APPROVED

Definition at line 149 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_AUTHORIZATION

Definition at line 150 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_BYTES

Definition at line 151 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_CACHE_CONTROL

Definition at line 152 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_CLIENT_IP

Definition at line 153 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_CONNECTION

Definition at line 154 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_CONTENT_BASE

Definition at line 155 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_CONTENT_ENCODING

Definition at line 156 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_CONTENT_LANGUAGE

Definition at line 157 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_CONTENT_LENGTH

Definition at line 158 of file InkAPI.cc.

Referenced by api_init(), and FetchSM::ext_add_header().

tsapi const char* TS_MIME_FIELD_CONTENT_LOCATION

Definition at line 159 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_CONTENT_MD5

Definition at line 160 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_CONTENT_RANGE

Definition at line 161 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_CONTENT_TYPE

Definition at line 162 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_CONTROL

Definition at line 163 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_COOKIE

Definition at line 164 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_DATE

Definition at line 165 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_DISTRIBUTION

Definition at line 166 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_ETAG

Definition at line 167 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_EXPECT

Definition at line 168 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_EXPIRES

Definition at line 169 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_FOLLOWUP_TO

Definition at line 170 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_FROM

Definition at line 171 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_HOST

Definition at line 172 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_IF_MATCH

Definition at line 173 of file InkAPI.cc.

Referenced by api_init().

Definition at line 174 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_IF_NONE_MATCH

Definition at line 175 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_IF_RANGE

Definition at line 176 of file InkAPI.cc.

Referenced by api_init().

Definition at line 177 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_KEEP_ALIVE

Definition at line 178 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_KEYWORDS

Definition at line 179 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_LAST_MODIFIED

Definition at line 180 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_LINES

Definition at line 181 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_LOCATION

Definition at line 182 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_MAX_FORWARDS

Definition at line 183 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_MESSAGE_ID

Definition at line 184 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_NEWSGROUPS

Definition at line 185 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_ORGANIZATION

Definition at line 186 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_PATH

Definition at line 187 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_PRAGMA

Definition at line 188 of file InkAPI.cc.

Referenced by api_init().

Definition at line 189 of file InkAPI.cc.

Referenced by api_init().

Definition at line 190 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_PROXY_CONNECTION

Definition at line 191 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_PUBLIC

Definition at line 192 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_RANGE

Definition at line 193 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_REFERENCES

Definition at line 194 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_REFERER

Definition at line 195 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_REPLY_TO

Definition at line 196 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_RETRY_AFTER

Definition at line 197 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_SENDER

Definition at line 198 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_SERVER

Definition at line 199 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_SET_COOKIE

Definition at line 200 of file InkAPI.cc.

Referenced by api_init().

Definition at line 201 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_SUBJECT

Definition at line 202 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_SUMMARY

Definition at line 203 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_TE

Definition at line 204 of file InkAPI.cc.

Referenced by api_init().

Definition at line 205 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_UPGRADE

Definition at line 206 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_USER_AGENT

Definition at line 207 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_VARY

Definition at line 208 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_VIA

Definition at line 209 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_WARNING

Definition at line 210 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_WWW_AUTHENTICATE

Definition at line 211 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_X_FORWARDED_FOR

Definition at line 213 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_MIME_FIELD_XREF

Definition at line 212 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_ACCEPT

Definition at line 216 of file InkAPI.cc.

Referenced by api_init().

Definition at line 217 of file InkAPI.cc.

Referenced by api_init().

Definition at line 218 of file InkAPI.cc.

Referenced by api_init().

Definition at line 219 of file InkAPI.cc.

Referenced by api_init().

Definition at line 220 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_AGE

Definition at line 221 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_ALLOW

Definition at line 222 of file InkAPI.cc.

Referenced by api_init().

Definition at line 223 of file InkAPI.cc.

Referenced by api_init().

Definition at line 224 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_BYTES

Definition at line 225 of file InkAPI.cc.

Referenced by api_init().

Definition at line 226 of file InkAPI.cc.

Referenced by api_init().

Definition at line 227 of file InkAPI.cc.

Referenced by api_init().

Definition at line 228 of file InkAPI.cc.

Referenced by api_init().

Definition at line 229 of file InkAPI.cc.

Referenced by api_init().

Definition at line 230 of file InkAPI.cc.

Referenced by api_init().

Definition at line 231 of file InkAPI.cc.

Referenced by api_init().

Definition at line 232 of file InkAPI.cc.

Referenced by api_init(), and FetchSM::ext_add_header().

Definition at line 233 of file InkAPI.cc.

Referenced by api_init().

Definition at line 234 of file InkAPI.cc.

Referenced by api_init().

Definition at line 235 of file InkAPI.cc.

Referenced by api_init().

Definition at line 236 of file InkAPI.cc.

Referenced by api_init().

Definition at line 237 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_COOKIE

Definition at line 238 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_DATE

Definition at line 239 of file InkAPI.cc.

Referenced by api_init().

Definition at line 240 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_ETAG

Definition at line 241 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_EXPECT

Definition at line 242 of file InkAPI.cc.

Referenced by api_init().

Definition at line 243 of file InkAPI.cc.

Referenced by api_init().

Definition at line 244 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_FROM

Definition at line 245 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_HOST

Definition at line 246 of file InkAPI.cc.

Referenced by api_init().

Definition at line 247 of file InkAPI.cc.

Referenced by api_init().

Definition at line 248 of file InkAPI.cc.

Referenced by api_init().

Definition at line 249 of file InkAPI.cc.

Referenced by api_init().

Definition at line 250 of file InkAPI.cc.

Referenced by api_init().

Definition at line 251 of file InkAPI.cc.

Referenced by api_init().

Definition at line 252 of file InkAPI.cc.

Referenced by api_init().

Definition at line 253 of file InkAPI.cc.

Referenced by api_init().

Definition at line 254 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_LINES

Definition at line 255 of file InkAPI.cc.

Referenced by api_init().

Definition at line 256 of file InkAPI.cc.

Referenced by api_init().

Definition at line 257 of file InkAPI.cc.

Referenced by api_init().

Definition at line 258 of file InkAPI.cc.

Referenced by api_init().

Definition at line 259 of file InkAPI.cc.

Referenced by api_init().

Definition at line 260 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_PATH

Definition at line 261 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_PRAGMA

Definition at line 262 of file InkAPI.cc.

Referenced by api_init().

Definition at line 263 of file InkAPI.cc.

Referenced by api_init().

Definition at line 264 of file InkAPI.cc.

Referenced by api_init().

Definition at line 265 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_PUBLIC

Definition at line 266 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_RANGE

Definition at line 267 of file InkAPI.cc.

Referenced by api_init().

Definition at line 268 of file InkAPI.cc.

Referenced by api_init().

Definition at line 269 of file InkAPI.cc.

Referenced by api_init().

Definition at line 270 of file InkAPI.cc.

Referenced by api_init().

Definition at line 271 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_SENDER

Definition at line 272 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_SERVER

Definition at line 273 of file InkAPI.cc.

Referenced by api_init().

Definition at line 274 of file InkAPI.cc.

Referenced by api_init().

Definition at line 275 of file InkAPI.cc.

Referenced by api_init().

Definition at line 276 of file InkAPI.cc.

Referenced by api_init().

Definition at line 277 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_TE

Definition at line 278 of file InkAPI.cc.

Referenced by api_init().

Definition at line 279 of file InkAPI.cc.

Referenced by api_init().

Definition at line 280 of file InkAPI.cc.

Referenced by api_init().

Definition at line 281 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_VARY

Definition at line 282 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_VIA

Definition at line 283 of file InkAPI.cc.

Referenced by api_init().

Definition at line 284 of file InkAPI.cc.

Referenced by api_init().

Definition at line 285 of file InkAPI.cc.

Referenced by api_init().

Definition at line 287 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_MIME_LEN_XREF

Definition at line 286 of file InkAPI.cc.

Referenced by api_init().

int ts_minor_version = 0 [static]

Definition at line 371 of file InkAPI.cc.

Referenced by api_init(), and TSTrafficServerVersionGetMinor().

tsapi const TSMLoc TS_NULL_MLOC = (TSMLoc)NULL
int ts_patch_version = 0 [static]

Definition at line 372 of file InkAPI.cc.

Referenced by api_init(), and TSTrafficServerVersionGetPatch().

tsapi int TS_URL_LEN_FILE

Definition at line 122 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_URL_LEN_FTP

Definition at line 123 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_URL_LEN_GOPHER

Definition at line 124 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_URL_LEN_HTTP

Definition at line 125 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_URL_LEN_HTTPS

Definition at line 126 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_URL_LEN_MAILTO

Definition at line 127 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_URL_LEN_MMS

Definition at line 137 of file InkAPI.cc.

tsapi int TS_URL_LEN_MMST

Definition at line 139 of file InkAPI.cc.

tsapi int TS_URL_LEN_MMSU

Definition at line 138 of file InkAPI.cc.

tsapi int TS_URL_LEN_NEWS

Definition at line 128 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_URL_LEN_NNTP

Definition at line 129 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_URL_LEN_PNM

Definition at line 134 of file InkAPI.cc.

Definition at line 130 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_URL_LEN_RTSP

Definition at line 135 of file InkAPI.cc.

tsapi int TS_URL_LEN_RTSPU

Definition at line 136 of file InkAPI.cc.

tsapi int TS_URL_LEN_TELNET

Definition at line 131 of file InkAPI.cc.

Referenced by api_init().

tsapi int TS_URL_LEN_TUNNEL

Definition at line 132 of file InkAPI.cc.

tsapi int TS_URL_LEN_WAIS

Definition at line 133 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_URL_SCHEME_FILE

Definition at line 102 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_URL_SCHEME_FTP

Definition at line 103 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_URL_SCHEME_GOPHER

Definition at line 104 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_URL_SCHEME_HTTP

Definition at line 105 of file InkAPI.cc.

Referenced by api_init(), SDK_API_TSHttpHdr(), and SDK_API_TSUrl().

tsapi const char* TS_URL_SCHEME_HTTPS

Definition at line 106 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_URL_SCHEME_MAILTO

Definition at line 107 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_URL_SCHEME_MMS

Definition at line 117 of file InkAPI.cc.

tsapi const char* TS_URL_SCHEME_MMST

Definition at line 119 of file InkAPI.cc.

tsapi const char* TS_URL_SCHEME_MMSU

Definition at line 118 of file InkAPI.cc.

tsapi const char* TS_URL_SCHEME_NEWS

Definition at line 108 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_URL_SCHEME_NNTP

Definition at line 109 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_URL_SCHEME_PNM

Definition at line 114 of file InkAPI.cc.

tsapi const char* TS_URL_SCHEME_PROSPERO

Definition at line 110 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_URL_SCHEME_RTSP

Definition at line 115 of file InkAPI.cc.

tsapi const char* TS_URL_SCHEME_RTSPU

Definition at line 116 of file InkAPI.cc.

tsapi const char* TS_URL_SCHEME_TELNET

Definition at line 111 of file InkAPI.cc.

Referenced by api_init().

tsapi const char* TS_URL_SCHEME_TUNNEL

Definition at line 112 of file InkAPI.cc.

tsapi const char* TS_URL_SCHEME_WAIS

Definition at line 113 of file InkAPI.cc.

Referenced by api_init().