Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-3225

Add more API support to ts_lua plugin

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.3.0
    • Lua, Plugins
    • None

    Description

      I would like to add support for the following APIs in ts_lua plugin as well as updating the documentation

      timeout related APIs -
      tsapi void TSHttpTxnActiveTimeoutSet(TSHttpTxn txnp, int timeout);
      tsapi void TSHttpTxnConnectTimeoutSet(TSHttpTxn txnp, int timeout);
      tsapi void TSHttpTxnDNSTimeoutSet(TSHttpTxn txnp, int timeout);
      tsapi void TSHttpTxnNoActivityTimeoutSet(TSHttpTxn txnp, int timeout);

      base64 encoding/decoding APIs -
      tsapi TSReturnCode TSBase64Decode(const char *str, size_t str_len, unsigned char *dst, size_t dst_size, size_t *length);
      tsapi TSReturnCode TSBase64Encode(const char *str, size_t str_len, char *dst, size_t dst_size, size_t *length);

      Percent encoding/decoding APIs
      tsapi TSReturnCode TSStringPercentEncode(const char *str, int str_len, char *dst, size_t dst_size, size_t *length, const unsigned char *map);
      tsapi TSReturnCode TSStringPercentDecode(const char *str, size_t str_len, char *dst, size_t dst_size, size_t *length);

      mark/tos APIs
      tsapi TSReturnCode TSHttpTxnClientPacketMarkSet(TSHttpTxn txnp, int mark);
      tsapi TSReturnCode TSHttpTxnServerPacketMarkSet(TSHttpTxn txnp, int mark);
      tsapi TSReturnCode TSHttpTxnClientPacketTosSet(TSHttpTxn txnp, int tos);
      tsapi TSReturnCode TSHttpTxnServerPacketTosSet(TSHttpTxn txnp, int tos);

      Attachments

        Activity

          People

            kichan Shu Kit Francis Chan
            kichan Shu Kit Francis Chan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: