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

Add more API support to ts_lua plugin

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.0
    • Component/s: Lua, Plugins
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: