trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject [trafficserver] branch master updated: TS-5045: Add ws and wss scheme constants.
Date Thu, 10 Nov 2016 03:44:20 GMT
This is an automated email from the ASF dual-hosted git repository.

jpeach pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  79ef0d5   TS-5045: Add ws and wss scheme constants.
79ef0d5 is described below

commit 79ef0d5980b168c5d3292e180ba15f458fe5bea9
Author: James Peach <jpeach@apache.org>
AuthorDate: Mon Nov 7 21:39:16 2016 -0800

    TS-5045: Add ws and wss scheme constants.
---
 doc/developer-guide/plugins/http-headers/urls.en.rst | 8 ++++++++
 lib/ts/apidefs.h.in                                  | 4 ++++
 proxy/InkAPI.cc                                      | 8 ++++++++
 3 files changed, 20 insertions(+)

diff --git a/doc/developer-guide/plugins/http-headers/urls.en.rst b/doc/developer-guide/plugins/http-headers/urls.en.rst
index 3d06633..2aea573 100644
--- a/doc/developer-guide/plugins/http-headers/urls.en.rst
+++ b/doc/developer-guide/plugins/http-headers/urls.en.rst
@@ -93,6 +93,14 @@ defines several preallocated scheme names.
     "wais"
     ``TS_URL_LEN_WAIS``
 
+``TS_URL_SCHEME_WS``
+    "ws"
+    ``TS_URL_LEN_WS``
+
+``TS_URL_SCHEME_WSS``
+    "wss"
+    ``TS_URL_LEN_WSS``
+
 The scheme names above are defined in ``ts.h`` as ``const`` ``char*``
 strings. When Traffic Server sets the scheme portion of the URL (or any
 portion for that matter), it quickly checks to see if the new value is
diff --git a/lib/ts/apidefs.h.in b/lib/ts/apidefs.h.in
index 2cc65f3..1686415 100644
--- a/lib/ts/apidefs.h.in
+++ b/lib/ts/apidefs.h.in
@@ -888,6 +888,8 @@ extern tsapi const char *TS_URL_SCHEME_RTSPU;
 extern tsapi const char *TS_URL_SCHEME_MMS;
 extern tsapi const char *TS_URL_SCHEME_MMSU;
 extern tsapi const char *TS_URL_SCHEME_MMST;
+extern tsapi const char *TS_URL_SCHEME_WS;
+extern tsapi const char *TS_URL_SCHEME_WSS;
 
 /* --------------------------------------------------------------------------
    URL scheme string lengths */
@@ -902,6 +904,8 @@ extern tsapi int TS_URL_LEN_NNTP;
 extern tsapi int TS_URL_LEN_PROSPERO;
 extern tsapi int TS_URL_LEN_TELNET;
 extern tsapi int TS_URL_LEN_WAIS;
+extern tsapi int TS_URL_LEN_WS;
+extern tsapi int TS_URL_LEN_WSS;
 
 /* --------------------------------------------------------------------------
    MIME fields */
diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc
index 1f8569e..b558add 100644
--- a/proxy/InkAPI.cc
+++ b/proxy/InkAPI.cc
@@ -111,6 +111,8 @@ 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 const char *TS_URL_SCHEME_WS;
+tsapi const char *TS_URL_SCHEME_WSS;
 
 /* URL schemes string lengths */
 tsapi int TS_URL_LEN_FILE;
@@ -131,6 +133,8 @@ 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 int TS_URL_LEN_WS;
+tsapi int TS_URL_LEN_WSS;
 
 /* MIME fields */
 tsapi const char *TS_MIME_FIELD_ACCEPT;
@@ -1397,6 +1401,8 @@ api_init()
     TS_URL_SCHEME_PROSPERO = URL_SCHEME_PROSPERO;
     TS_URL_SCHEME_TELNET   = URL_SCHEME_TELNET;
     TS_URL_SCHEME_WAIS     = URL_SCHEME_WAIS;
+    TS_URL_SCHEME_WS       = URL_SCHEME_WS;
+    TS_URL_SCHEME_WSS      = URL_SCHEME_WSS;
 
     TS_URL_LEN_FILE     = URL_LEN_FILE;
     TS_URL_LEN_FTP      = URL_LEN_FTP;
@@ -1409,6 +1415,8 @@ api_init()
     TS_URL_LEN_PROSPERO = URL_LEN_PROSPERO;
     TS_URL_LEN_TELNET   = URL_LEN_TELNET;
     TS_URL_LEN_WAIS     = URL_LEN_WAIS;
+    TS_URL_LEN_WS       = URL_LEN_WS;
+    TS_URL_LEN_WSS      = URL_LEN_WSS;
 
     /* MIME fields */
     TS_MIME_FIELD_ACCEPT                    = MIME_FIELD_ACCEPT;

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message